<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Alan,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thank you for pointing out this.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">As you pointed out we do a client side polling to check if there are any active calls, pull that call details and notify user through a call popup. Without client side polling we will not be able to notify user about the calls.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">But we can optimize the query (fix will be provided soon) by pulling out only required information from the database and fetching the data based on the current user(calls related to respective user who is active and logged in CRM).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Akshath</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 20, 2014 at 5:46 PM, Alan Lord (News) <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 20/11/14 12:03, Alan Lord (News) wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have just noticed in the logs for vtiger 6.1.0 if PBXManager is<br>
enabled the following about every 3 seconds...<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
SELECT * FROM vtiger_pbxmanager AS module_table INNER JOIN<br>
vtiger_crmentity AS entity_table  WHERE module_table.callstatus<br>
IN(?,?) AND module_table.direction=? AND<br>
module_table.pbxmanagerid=<u></u>entity_table.crmid AND entity_table.deleted=0<br>
Thu Nov 20 11:59:36 2014,648 [31318] DEBUG VT - Prepared sql query<br>
parameters : [ringing,in-progress,inbound]<br>
</blockquote>
<br>
Please tell me this isn't so :-(<br>
<br>
I thought you'd got rid of the constant polling...<br>
</blockquote>
<br></span>
This is going tp put a huge load on the server with >50 simultaneous users and >400,000 rows in the vtiger_pbxmanager table and >2million in vtiger_crmentity...<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Al<br>
<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://www.libertus.co.uk" target="_blank">http://www.libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font color="#444444"><b>Thanks & Regards<br></b></font></div><font color="#444444"><b>        Akshath<br>          Vtiger</b></font><font color="#0000ff" style="color:rgb(136,136,136)"><b><br><br></b></font><br><b style="color:rgb(136,136,136)">Connect with us on: </b><a href="http://twitter.com/#%21/vtigercrm" style="color:rgb(17,85,204)" target="_blank">Twitter</a><font color="#888888"> </font><b style="color:rgb(136,136,136)">I</b><font color="#888888"> </font><a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(17,85,204)" target="_blank">Facebook</a><font color="#888888"> </font><b style="color:rgb(136,136,136)">I</b><font color="#888888"> </font><a href="http://blog.vtiger.com/" style="color:rgb(17,85,204)" target="_blank">Blog</a><b style="color:rgb(136,136,136)"> I</b><font color="#888888"> </font><a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(17,85,204)" target="_blank">Wiki</a><font color="#888888"> </font><b style="color:rgb(136,136,136)">I </b><a href="http://forums.vtiger.com/" style="color:rgb(17,85,204)" target="_blank">Forums </a><b style="color:rgb(136,136,136)">I</b><font color="#888888"> </font><a href="http://vtiger.com/" style="color:rgb(17,85,204)" target="_blank">Website</a><br></div><div style="color:rgb(136,136,136)"><br></div></div></div></div></div></div>
</div>