Skip to content
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

Smart Search Optimise times out #44470

Open
MacJoom opened this issue Nov 17, 2024 · 4 comments
Open

Smart Search Optimise times out #44470

MacJoom opened this issue Nov 17, 2024 · 4 comments

Comments

@MacJoom
Copy link
Contributor

MacJoom commented Nov 17, 2024

Steps to reproduce the issue

On a website with a lot of articles (in my case >88000)

Go to Smart Seach, Index
Either do:

  • Index, the index process takes a few hours but works, in the end there is no success message because the optimise process is run at the end times out (in the background)

  • Optimise, the process times out (e.g. 504 Gateway Time-out)

Expected result

Optimise works

Actual result

Optimise times out

System information (as much as possible)

PHP 8.2 Joomla 5.2.1
max_execution_time set to 720 (maximum)

Additional comments

I'm working on a CLI solution with new queries (tests show that the query in question runs 32 minutes...)

@Hackwar
Copy link
Member

Hackwar commented Nov 19, 2024

Please have a look at #44485, which should solve the issue actually.

@Hackwar
Copy link
Member

Hackwar commented Nov 24, 2024

Since #44485 is already RTC and should indeed greatly improve this issue, I'm closing this ticket for now. If #44485 doesn't solve your issue, please open it again.

@Hackwar Hackwar closed this as completed Nov 24, 2024
@MacJoom
Copy link
Contributor Author

MacJoom commented Nov 25, 2024

I have tested unsuccessfully with the prebuilt package on my local test website. I found the culprit query in the onFinderGarbageCollection() routine in administrator/components/com_finder/src/Indexer/Adapter.php . The query before the loop takes very long with a lot of items in the finder_links table.

@MacJoom MacJoom reopened this Nov 25, 2024
@mrownicki
Copy link

I have 45k article. Indexing literally takes 6-7 hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants