-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
joomla backend get slow with a lot of menu items #9516
Comments
Is it possible for you to provide a database dump of just the #__menu
table? This will really help people to test without having to create a
gazillion menu items
|
Reset priority to documented standards https://docs.joomla.org/Priority This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9516. |
GROUP BY should be used when there is need to calculate an aggregate value via an aggregate function such as COUNT(), MAX() etc, in this case i do not see any aggregate function inside the SQL query
now if the PHP code
|
brianteeman - i sent you the menu dump in an Email. |
Got it thanks
|
Thanks for sending the data |
didn`t work :( |
No that won't make it faster but it will prevent errors due to the large
|
hi brianteeman, |
@alikon do you think you will be able to take a look at this - I can confirm the slow queries and I have the db dump if it will help This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9516. |
I will look at it but i need more clear info on how to replicate.... Can you help me ... |
I will email you a database dump with 3000+ menu items
You will need to ensure that you have php_max_vars set to greater than the
number of menu items or joomla will fail
Then to see the issue try to open any module for editing and you will see
the delay. This is due to the way a module can be assigned to a menu item
and in this case we have 3000+
|
hi, On Thu, Mar 31, 2016 at 12:29 PM, Brian Teeman notifications@github.com
|
As per your request I changed the category. Since there is no MySQL category, I set it to SQL. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9516. |
thanks :) |
Closed as we have a PR for testing #9689 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9516. |
@benshaty please can you test the changes made in #9689 - I had amazing results with it with your data set This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9516. |
Thanks. נשלח מסמארטפון ה-Samsung Galaxy שלי. -------- הודעה מקורית -------- מאת: Brian Teeman notifications@github.com תאריך:01/04/2016 11:40 (GMT+02:00) אל: joomla/joomla-cms joomla-cms@noreply.github.com עותק: Ben Shaty benshaty@gmail.com נושא: Re: [joomla/joomla-cms] joomla backend get slow with a lot of menu
items (#9516) This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9516. |
Module edit backend get slow with a lot of menu items #9516
Hi,
I have a joomla site with ~3000+ menu items.
Steps to reproduce the issue
when i get into the template manager / module manager
the SQL query takes ~40 sec.
ifound that the SQL has GROUP BY command that take ~10 sec. to process.
if i remove it and add "DISTINCT" after the select the query take ~0.05 sec.
sql query that take 10 sec.
SELECT a.id AS value, a.title AS text, a.alias, a.level, a.menutype, a.type, a.template_style_id, a.checked_out
FROM XXXXXXX_menu AS a
LEFT JOIN
XXXXXXX_menu
AS bON a.lft > b.lft
AND a.rgt < b.rgt
WHERE a.published != -2
GROUP BY a.id, a.title, a.alias, a.level, a.menutype, a.type, a.template_style_id, a.checked_out, a.lft
ORDER BY a.lft ASC
fixed sql
SELECT DISTINCT a.id AS value, a.title AS text, a.alias, a.level, a.menutype, a.type, a.template_style_id, a.checked_out
FROM XXXXXXX_menu AS a
LEFT JOIN
XXXXXXX_menu
AS bON a.lft > b.lft
AND a.rgt < b.rgt
WHERE a.published != -2
ORDER BY a.lft ASC
Is it possible to fix this SQL?
The text was updated successfully, but these errors were encountered: