RTC PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
17 Apr 2025

Summary of Changes

Smart Search module creates new Query and triggers Joomla\Component\Finder\Administrator\Indexer::processString() method which loads available taxonomy branch titles via separate SQL query per each module (duplicate query).

We should not process empty string, when the module is loaded without any input. Plus, Taxonomy::getBranchTitles() load should use static cache and produce only single query to prevent duplicate when we have multiple mod_finder instances (i.e. typical case for Yootheme templates where one module is rendered in header and second in mobile dialog).

Testing Instructions

Create two Smart Search modules, apply patch,

Actual result BEFORE applying this Pull Request

Load page with Smart Search modules, see duplicate queries like:

SELECT `title`
FROM `jos_finder_taxonomy`
WHERE `parent_id` = 1 AND `state` = 1 AND `access` IN (1,5)

Expected result AFTER applying this Pull Request

No useless queries, the mod_finder render time is also faster now.

Link to documentations

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar Denitz Denitz - open - 17 Apr 2025
avatar Denitz Denitz - change - 17 Apr 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Apr 2025
Category Administration com_finder
avatar Denitz Denitz - change - 17 Apr 2025
Labels Added: PR-5.3-dev
avatar Denitz Denitz - change - 17 Apr 2025
Title
Optimize smart search module
[5.3] Optimize smart search module
avatar Denitz Denitz - edited - 17 Apr 2025
avatar ceford ceford - test_item - 26 May 2025 - Tested successfully
avatar ceford
ceford - comment - 26 May 2025

I have tested this item ✅ successfully on 7826570

I see the number of queries decrease by 2 on both the pages with two modules and the results page with a side module. No problems observed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45347.

avatar Denitz
Denitz - comment - 11 Jul 2025

@QuyTon Related to #45345 - can you check this one as well?

avatar RickR2H RickR2H - test_item - 31 Jul 2025 - Tested successfully
avatar RickR2H
RickR2H - comment - 31 Jul 2025

I have tested this item ✅ successfully on 7826570


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45347.

avatar RickR2H RickR2H - change - 31 Jul 2025
Status Pending Ready to Commit
avatar RickR2H
RickR2H - comment - 31 Jul 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45347.

avatar rdeutz rdeutz - change - 31 Jul 2025
Labels Added: RTC
avatar Hackwar
Hackwar - comment - 8 Aug 2025

While I agree with these changes, I also don't think it is a bugfix and thus should go into 5.4

avatar Denitz Denitz - change - 21 Aug 2025
Title
[5.3] Optimize smart search module
[5.4] Optimize smart search module
avatar Denitz Denitz - edited - 21 Aug 2025
avatar Denitz
Denitz - comment - 21 Aug 2025

OK, changed to 5.4

avatar richard67 richard67 - change - 21 Aug 2025
Labels Added: PR-5.4-dev
Removed: PR-5.3-dev
avatar richard67
richard67 - comment - 22 Aug 2025

As it was a clean rebase without conflicts, the tests and RTC are still valid, and I've just reviewed the changes. They are all ok.

avatar richard67 richard67 - close - 22 Aug 2025
avatar richard67 richard67 - merge - 22 Aug 2025
avatar richard67 richard67 - change - 22 Aug 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-08-22 11:01:09
Closed_By richard67
avatar richard67
richard67 - comment - 22 Aug 2025

Thanks @Denitz , and thanks @RickR2H and @ceford for testing and @Hackwar for review.

Add a Comment

Login with GitHub to post a comment