You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
joepio
changed the title
Large queries can slowdown entire server
Large queries can slow down server
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.
Luckily, an index for a query like this only has to be built once. After that, it should be fast again.
Solutions
The text was updated successfully, but these errors were encountered: