-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extremely slow query execution #2449
Comments
+1 |
@escopecz would you carry an PR about that? If it improve mautic performances, it shouldn't stay like that knowing what has been tested and code almost ready right? |
I think that's quite urgent, because at some scale it is making usage of Mautic really annoying. |
There is no button to raise the priority. If there is the solution why anyone hasn't sent a PR with it? Is there some catch? |
I have the same problem but with 600 contacts |
Same here. with 300k contacts. |
I have the same problem with 600k+ contacts. Email channel doesn't open. |
+1 for this issue, it's the main issue preventing us from scaling Mautic. Is anyone working on implementing the solution for this? And if not, can someone direct me to where these queries are generated so I can implement the fix? |
Yeah, +1 for this. Any reason this was closed @dbhurley? Happy to work on this and contribute a solution if needed. |
Excellent! Thanks @craigsketchley :) (and others). Needed action to be taken or would be closed to due inactivity. I've reopened. Thanks for the replies everyone! |
That's awesome! I'll take a look and I'm sure others will as well. 😎 |
What type of report is this:
Description:
We Imported approx 1 million contacts, after which Mautic became unusable, with most pages taking forever to load. We monitored the queries being executed in MySQL and created an index on few of the tables/columns that improved things a bit. In particular, we added index to these tables/columns:
This improved things significantly, and we are able to open most pages even though its takes a bit of time.
However, there is one more page (channels -> emails) that still refuses to open (takes about 20 mins to open). We observed the queries that this page is executing and found this one to be taking most of that 20 mins of execution time:
Original Query
Modified Query
We re-wrote the above co-related query to this, which uses a simple join instead and runs in under 5 seconds. However, we are not sure how to make Mautic use this new query instead:
If a bug:
Steps to reproduce:
Log errors:
Please check for related errors in the latest log file in [mautic root]/app/log/ and/or the web server's logs and post them here. Be sure to remove sensitive information if applicable.
The text was updated successfully, but these errors were encountered: