-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix performance retrieving menu items in menus helper, e.g. when creating "Select page" filter in modules manager #11627
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
Conversation
|
tested successful, speed is back. |
|
@prathumwan please mark as tested with success in https://issues.joomla.org/tracker/joomla-cms/11627?nocache |
|
I have tested this item ✅ successfully on This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11627. |
|
also, since you have big set of menu items besides this PR, also please see PR #11628 that
(fixes performance creating menuparent form element, (edit an item that belongs to a large menu) Go to your largest menu and edit an item there: |
|
I have tested this item ✅ successfully on 7a19975 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11627. |
|
This PR patches the menus helper method: MenusHelper::getMenuLinks()
That is wherever a menu item select drop is created e.g. "search filter" "select page" in modules manager and also edit forms that have assignments to menu items
|
|
ok so with a small menu (15 menu items) we can still notice the changes: Before patchAfter patchNote: Code i used for test: !JDEBUG ?: JProfiler::getInstance('Application')->mark('- start query');
$links = $db->loadObjectList();
!JDEBUG ?: JProfiler::getInstance('Application')->mark('- end query'); |
|
I have tested this item ✅ successfully on 7a19975 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11627. |
|
can we have RTC here? |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11627. |


Pull Request for Issue #10997
Fixes performance of creating" Select Page" filter (= menu item filter) in modules manager
Summary of Changes
Removed unused left join, joining menu items table with itself for no reason
No reason because
There is already another (different) self-join for the table on the lft/rgt, similar to the one removed when we limit to a specific parent parent
Testing Instructions
Visit module manager and open search filters, the "Select page" filter should be same as before, and behave as before
Documentation Changes Required
none