Critical Performance Issue. Urgent Help Required
Hi
Our sugar instance is hosted in Siteground. Sugar Version 4.5.1e
Our instance has 100000 leads and 50000 emails. Now the sugar has a serious performance problem (Error 503 - Service Temporarily Unavailable This error means that the web server is currently unable to handle your request due to a temporary overload. Please try to reload the webpage in a few seconds.) We are not able to do any transaction. It is very business critical.
Following are the queries that are taking too much time to execute.
The table which our system administrators referred to is the emails one (emails.MYD), which is actually the one taking the whole space of the database.
>> Details of queries/ frequency and name of query if any specific query is problematic.
Executed 15 min ago for 2 sec on Database --> resumen1_visa.
SELECT count(*) c FROM emails LEFT JOIN emails_contacts ec ON emails.id = ec.email_id LEFT JOIN contacts ON ec.contact_id = contacts.id LEFT JOIN users ON emails.assigned_user_id=users.id WHERE emails.assigned_user_id IN ('abc','17180d64-f9e3-4eac-7aef-478a75729f4a' ) AND emails.type = 'inbound' AND emails.deleted=0
Executed 9 min ago for 4 sec on Database --> resumen1_visa.
SELECT count(*) c FROM leads LEFT JOIN leads_cstm ON leads.id = leads_cstm.id_c LEFT JOIN users jt0 ONjt0.id= leads.assigned_user_id AND jt0.deleted=0 AND jt0.deleted=0 where leads.deleted=0
Executed 6 min ago for 2 sec on Database --> resumen1_visa.
SELECT count(*) c FROM emails LEFT JOIN emails_contacts ec ON emails.id = ec.email_id LEFT JOIN contacts ON ec.contact_id = contacts.id LEFT JOIN users ON emails.assigned_user_id=users.id WHERE emails.assigned_user_id = '68484c18-2494-eb1c-a0ea-478a746effe1' AND emails.type='out' AND emails.deleted=0
Executed 6 min ago for 101 sec on Database --> resumen1_visa.
SELECT count(*) c FROM emails LEFT JOIN emails_contacts ec ON emails.id = ec.email_id LEFT JOIN contacts ON ec.contact_id = contacts.id LEFT JOIN users ON emails.assigned_user_id=users.id WHERE emails.assigned_user_id IN ('abc','17180d64-f9e3-4eac-7aef-478a75729f4a' ) AND emails.type = 'inbound' AND emails.deleted=0
WE HAVE MADE THE FOLLOWING CHANGES IN CONFIG.PHP, BUT STILL THE PROBLEM PERSISTS
'disable_count_query' => true,
'disable_vcr' => true,
'hide_subpanels_on_login' => true,
'save_query' => 'populate_only',
'dump_slow_queries' => true,
Please help us in this regard. It is a very critical issue.
Team Veon
Veon Consulting Pvt Ltd.
Hyderabad, India.
Phone - +91-40-66444272/73/74
Veon Consulting Pvt Limited
Skype - veon.consulting / prasad.veon
Bookmarks