[4.0] Improve menu item list performance on multilingual sites#26485
[4.0] Improve menu item list performance on multilingual sites#26485wilsonge merged 1 commit intojoomla:4.0-devfrom SharkyKZ:j4/query/menus/multilang
Conversation
|
I have tested this item ✅ successfully on 426111e About performance I can't say anything because my test data set is too small. But I can confirm everything works as well as before, carefully watching PHP error log with PHP error reporting set to maximum and watching database log. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26485. |
|
I have tested this item ✅ successfully on 426111e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26485. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26485. |
|
Thanks! |
|
Tested and implemented in joomla 3.9.12, php 7.2, Mysql 5.7 Everything works as usual, I have not encountered problems, the performance has improved a bit, unfortunately I do not have the necessary knowledge to measure the percentage of improvement. However, the Menu Component continues to perform poorly since this improvement would only improve performance in the multilanguage area, but individually the Menu Component continues to create a TTFB in sites with several menus. I make available a site with real load for case study in case anyone is interested in finding the definitive solution to the poor performance of the Menu Component in Joomla, which from my personal point of view, is the only thing that limits joomla to be The best CMS. Thank you all for your great work! |
This PR was for 4.0 |
Summary of Changes
Replaces
JOINandGROUPclauses in query with a subquery for improved performance.Testing Instructions
Set up a multilingual site.
Enable language associations.
Create some menu items with and without associations
View menu item list in backend.
Expected result
Works like before.
Documentation Changes Required
No.