We are getting intermittent timing issues in that a user will send an email and sometimes it works quickly and sometimes it will take 20ish seconds to give back control. And this is affecting the whole server. I've been logged in to the CLI on the server and it would stop responding for about that amount of time...then be back to normal.
I've turned on slow query log in mysql and there are 15-20 second queries that involve note and subscription tables in a large statement involving multiple UNIONS. I believe it is coming from the EmailNotification.php but not completely sure. I turned off all notifications in administration as a test, but those queries keep on happening.
Question...
Is there a way to turn off notifcations to test if this is what is causing the slow queries?
and
Is there another way I should be tracking down where the queries are coming from? The statements appear to be built in code so it's kind of tough to track based on the actual query I have captured
I've turned on slow query log in mysql and there are 15-20 second queries that involve note and subscription tables in a large statement involving multiple UNIONS. I believe it is coming from the EmailNotification.php but not completely sure. I turned off all notifications in administration as a test, but those queries keep on happening.
Question...
Is there a way to turn off notifcations to test if this is what is causing the slow queries?
and
Is there another way I should be tracking down where the queries are coming from? The statements appear to be built in code so it's kind of tough to track based on the actual query I have captured
Comment