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

mem usage & cpu optimization for the delta update handler #94

Open
nbittich opened this issue Jan 5, 2025 · 1 comment
Open

mem usage & cpu optimization for the delta update handler #94

nbittich opened this issue Jan 5, 2025 · 1 comment

Comments

@nbittich
Copy link
Contributor

nbittich commented Jan 5, 2025

When the /update handler is spammed with delta updates, mu search can't keep up (which makes sense) and consume a lot of memory & cpu, although the updates are cached before being consumed:

image

@nbittich
Copy link
Contributor Author

nbittich commented Jan 6, 2025

a possible optimization could be to dedup and filter by subjects before adding to the queue:
https://github.com/mu-semtech/mu-search/blob/master/lib/mu_search/delta_handler.rb#L63

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