- Posts: 1122
- Thank you received: 163
Heavy SQL-queries caused by CP?
- andrea_4g
- Offline
- Administrator
Less
More
9 years 3 months ago #2270
by andrea_4g
Replied by andrea_4g on topic Heavy SQL-queries caused by CP?
This query is inherently heavy and there are not enough resources allocated to your MySql server to run it.
2) this query and the underlying tables already make full use of indexes; see for yourself using the 'EXPLAIN' sytax
3) the critical part seem the 'AND multiselect' part (field = antal); we know from tests that 'AND multiselect' is way heavier than 'OR multiselect'; if possible, change the search control type. If that's not an option you'll need a beefier server and/or you need to be give more resources.
Feel free to contact us via email, if you want to discuss details in a more private form.
1) use a different control type, i.e. "select" instead of "AND multiselect"; there's no other way to limit the number of selection (unless you do some JS customization)1) Is there a way to limit the possibility to choose options, 2) adding some index or 3) do you have any other suggestion to solve this?
2) this query and the underlying tables already make full use of indexes; see for yourself using the 'EXPLAIN' sytax
3) the critical part seem the 'AND multiselect' part (field = antal); we know from tests that 'AND multiselect' is way heavier than 'OR multiselect'; if possible, change the search control type. If that's not an option you'll need a beefier server and/or you need to be give more resources.
Feel free to contact us via email, if you want to discuss details in a more private form.
Please Log in or Create an account to join the conversation.
Time to create page: 0.147 seconds