<p>Alexei Gradinari <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/10270">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: improve realtime performance on CLI 'pjsip show contacts'<br><br>CLI command 'pjsip show contacts' inefficiently make a lot of DB requests.<br><br>For example if there are 10k aors then asterisk requests these 10k records<br>of aor and then does 10k requests of contact - one request per aor.<br><br>Even if use 'like <pattern>' the asterisk requests all aor's and contact's<br>records and then filters them by itself.<br><br>This patch gathers contact's container by<br>- retrieving all dynamic contacts by regex (filtered by reg_server)<br>- retrieving all aors with permanent contacts<br>- finally filters container by regex<br><br>ASTERISK-28077 #close<br><br>Change-Id: Id0ad65d14952a02fb213273a90f3f680a8149618<br>---<br>M res/res_pjsip/location.c<br>1 file changed, 58 insertions(+), 10 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/70/10270/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/10270">change 10270</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10270"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Id0ad65d14952a02fb213273a90f3f680a8149618 </div>
<div style="display:none"> Gerrit-Change-Number: 10270 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>