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

[BUGFIX] slow response when allowedSites = __all #3294

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

netcoop
Copy link
Contributor

@netcoop netcoop commented Jul 24, 2022

What this pr does

Fixes very slow response when search.query.allowedSites = __all, esp. on multi-site installations.

How to test

Add a couple of extra sites with their own domain or subdomain and measure the time it takes for the method getDomainListOfAllSites to complete. Without the patch, this could easily run up to 0.3 or 0.5 seconds for each domain. With this fix, the time is negligible (and so it should, because this method is process uncached).

Fixes: #3292

@netcoop netcoop force-pushed the bugfix/3292-fix-slow-allowedSites-all branch 3 times, most recently from 398b9e6 to 91d16c6 Compare July 27, 2022 12:05
@dkd-kaehm dkd-kaehm force-pushed the bugfix/3292-fix-slow-allowedSites-all branch from 91d16c6 to d8bcdb3 Compare September 9, 2022 09:40
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@netcoop
Thanks for fixing that and sorry for late response.
IMHO the single usage of getDomainListOfAllSites() method is on search context, where TypoScript and other stuff from all sites is not required.
It requires just the domain of each site to be able to generate the site-hash for filter query like
siteHash:abcde OR siteHash:edcba OR ... ignoring the configuration state of solr on each site.
Therefore i would suggest to adjust the test case to the new scenario suggested by you.

Besides that, please add following in your commit message:

Fixes: #3292
Relates: #2655
`

@dkd-kaehm dkd-kaehm force-pushed the main branch 3 times, most recently from 363e234 to a9bae2f Compare May 17, 2024 10:41
@dkd-kaehm dkd-kaehm force-pushed the main branch 2 times, most recently from e865edc to 89d9f0d Compare July 11, 2024 17:14
@dkd-kaehm dkd-kaehm force-pushed the main branch 2 times, most recently from 16bf8c5 to dfcdd98 Compare July 30, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] very slow response when allowedSites = __all
2 participants