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

Large queries can slow down server #1003

Open
joepio opened this issue Oct 28, 2024 · 0 comments
Open

Large queries can slow down server #1003

joepio opened this issue Oct 28, 2024 · 0 comments
Labels
performance Speed improvements server atomic-server

Comments

@joepio
Copy link
Member

joepio commented Oct 28, 2024

Today I tried to list all commits and sort them by date. An extremely large query to run (most queries are scoped to one drive
and don't hit the most common resource). This basically broke the server. I'm assuming the heavy part here was the sorting.

Screenshot 2024-10-28 at 15 48 45

Luckily, an index for a query like this only has to be built once. After that, it should be fast again.

Solutions

  • Don't allow any process take up 100% CPU
  • Don't allow any process to take longer than x seconds
  • Don't allow a user (except for a sudo user) to do a query like this
  • Always scope queries by drive
@joepio joepio changed the title Large queries can slowdown entire server Large queries can slow down server Oct 28, 2024
@joepio joepio added performance Speed improvements server atomic-server labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Speed improvements server atomic-server
Projects
None yet
Development

No branches or pull requests

1 participant