]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_notify: improve realtime performance on CLI completion on the endpoint
authorAlexei Gradinari <alex2grad@gmail.com>
Fri, 26 Oct 2018 21:18:38 +0000 (17:18 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Sat, 27 Oct 2018 22:50:53 +0000 (17:50 -0500)
commitfbee50561157b0b3b35315faea1d1ba2e984ad03
tree23f55ebb4621919b115a6c6c880f8df2efefedb2
parent3f4f31fed6c8314d3484c91ad978497a4bbff37b
res_pjsip_notify: improve realtime performance on CLI completion on the endpoint

The module 'res_pjsip_notify' inefficiently makes a lot of DB requests
on CLI completion on the endpoint.

For example if there are 10k endpoints the module makes 10k requests
of these 10k records.

Even if a part of the endpoint entered
the module makes the same 10k requests and then filtered them by itself.

This patch gathers endpoints container by prefix
and adds all gathered endpoints to completion at once.

ASTERISK-28137 #close

Change-Id: Ic20024912cc77bf4d3e476c4cd853293c52b254b
res/res_pjsip_notify.c