-
Notifications
You must be signed in to change notification settings - Fork 4
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
very slow query #1
Comments
SELECT c.*, GROUP_CONCAT(DISTINCT ci.item_id) as item_ids FROM #__zoo_category AS c USE INDEX (APPLICATIONID_ID_INDEX) LEFT JOIN #__zoo_category_item AS ci ON ci.category_id = c.id LEFT JOIN #__zoo_item AS i USE INDEX (MULTI_INDEX2) ON ci.item_id = i.id AND i.state = 1 WHERE c.application_id = 2 AND c.published = 1 limit 2 = 0.2657 sec |
without hacks: limit 20 = 0.5215 sec |
when i replace |
Thank you for your interest. Do you have a better solution? |
just replace |
hi
thanks for tricks and speed ups
i have found very heavy query:
i think
GROUP_CONCAT
load CPU 100% because i have 50K items at alland column
GROUP_CONCAT(DISTINCT ci.item_id) as item_ids
is very bigdisabling counting items make site work as lightning but pagination disappearing at this hack
The text was updated successfully, but these errors were encountered: