Been observing the log file now for a day and as far as I can tell, the queries themselves aren't the issue here, they all run under 0.0005 seconds.
Here's what happens when I click save and Sugar gets stuck:
Code:
Wed Feb 20 11:34:19 2008,661 [22389] INFO SugarCRM - Query Execution Time:0.000552
Wed Feb 20 11:34:19 2008,959 [10895] INFO SugarCRM - Query:SELECT id, name, symbol, conversion_rate FROM currencies WHERE status = 'Active' and deleted = 0
Wed Feb 20 11:34:19 2008,960 [10895] INFO SugarCRM - Query Execution Time:0.000201
Wed Feb 20 11:34:19 2008,964 [10895] INFO SugarCRM - Query:SELECT category, name, value FROM config
Wed Feb 20 11:34:19 2008,964 [10895] INFO SugarCRM - Query Execution Time:0.000407
Wed Feb 20 11:34:19 2008,966 [10895] INFO SugarCRM - Query:SELECT id FROM outbound_email WHERE type = 'system'
Wed Feb 20 11:34:19 2008,966 [10895] INFO SugarCRM - Query Execution Time:0.000249
Wed Feb 20 11:34:19 2008,966 [10895] INFO SugarCRM - Query:SELECT * FROM outbound_email WHERE id = '5824dbc7-9349-d227-c141-47a2224c5cd9'
Wed Feb 20 11:34:19 2008,967 [10895] INFO SugarCRM - Query Execution Time:0.000255
After which, a five minute pause occurs. MySQL process list shows the process state as SLEEP and the page just continues loading. After about five minutes, the logs proceed with:
Code:
Wed Feb 20 11:39:19 2008,681 [10895] DEBUG SugarCRM - We have an authenticated user id: 1
Wed Feb 20 11:39:19 2008,681 [10895] DEBUG SugarCRM - Retrieve User : SELECT users.* FROM users WHERE users.id = '1' AND users.deleted=0
Wed Feb 20 11:39:19 2008,682 [10895] DEBUG SugarCRM - Limit Query:SELECT users.* FROM users WHERE users.id = '1' AND users.deleted=0 Start: 0 count: 1
Wed Feb 20 11:39:19 2008,682 [10895] INFO SugarCRM - Query:SELECT users.* FROM users WHERE users.id = '1' AND users.deleted=0 LIMIT 0,1
Wed Feb 20 11:39:19 2008,684 [10895] INFO SugarCRM - Query Execution Time:0.001544
...and so on, followed by the actual queries that save the entry.
As far as I can tell, it gets always stuck at that same point.
Bookmarks