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
New category count feature performance degrade #9420
Comments
@alikon Can you look into this please? |
If you just want to test with 3.5rc2 without doing the upgrade you can grab the db dump here https://www.dropbox.com/s/uc5l57f5x4hmco6/large-delete-passport.sql%202.zip?dl=0 (again remember it is 500mb extracted) This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9420. |
@brianteeman i have about the same log. Data Base 1.4Gb |
From: 321.6 ms "just" 31 seconds more ... |
@brianteeman Thanks for reproducing the error. I assume that the "COUNT(DISTINCT" that is used 4 times in the query (in the helper file Maybe we could rewrite the COUNT(DISTINCT into subqueries like described here: If not, or if keeps being a bottleneck for websites with large quantities of categories and articles, we could add a parameter to switch it off. |
Please test #9421 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9420. |
@Wertos can you test #9421 please - looks great to me but we need two tests This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9420. |
@brianteeman Excellent work! Page opens almost instantly. It would be more output at the bottom the total number of materials |
@Wertos please record your test result at #9421 On 14 March 2016 at 15:23, Wertos notifications@github.com wrote:
Brian Teeman |
New category count feature performance degrade
New category count feature performance degrade
Steps to reproduce the issue
1. Create a 3.4.8 site with a LOT of categories and articles (I used com_overload (https://github.com/nikosdion/com_overload) to create 53k articles in 1.1k categories or use this db dump https://www.dropbox.com/s/xpyij0bwuc2mohu/large-delete-passport.sql.zip?dl=0 (note it is half a gig extracted)
2. Enable debug and go to the category manager
My debug results were
Database queries total: 46.3 ms
and the relevant query
and
3. Upgrade the site to 3.5rc2 and go to category manager again
Expected behaviour is to see the new category count feature from #6916
Actual behaviour - it gets there eventually but takes a very long time
My debug results were
Database queries total: 31358.46 ms
and the relevant query
and
The text was updated successfully, but these errors were encountered: