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

Question/issue?: Does the plugin load all suggestions during startup? #148

Open
MikaelPorttila opened this issue Nov 11, 2024 · 0 comments

Comments

@MikaelPorttila
Copy link

MikaelPorttila commented Nov 11, 2024

Hi

I have noticed a pattern during startup of sites with a large number of suggestions that a database CPU spike will occur which sometimes will cause timeouts.

Purging the suggestions manually will remove the CPU spike and normal operations will resume.

I haven't dug into any code yet but my gut feeling is that something cause the plugin to start fetching all suggesions during the startup, maybe this is by design to have a hashset of urls available in the the memory to speed up 404-handling? or is this an actual bug/ unexpected side-effect? Any setting to limit the number of suggestions loaded during startup?

The admin UI handles the large number of suggestions with ease by using pagination so the issue mainly affects the site startup only.

image

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

No branches or pull requests

1 participant