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

Speed up queries with job/app index and increase in paging size #297

Merged
merged 3 commits into from
Dec 13, 2022
Merged

Conversation

tomuram
Copy link
Collaborator

@tomuram tomuram commented Dec 13, 2022

The increase in paging size from 10K to 100K produces a significant speedup in job queries; in some cases, the speedup is from 30000ms to 2ms. This is in part due to a change in the query plan chosen by the DB server in these cases, and in part due to the new index.

This report was useful: https://dba.stackexchange.com/questions/213262/why-is-this-query-with-where-order-by-and-limit-so-slow

Thomas Uram and others added 3 commits December 12, 2022 17:14
Increase MAX_PAGE_SIZE from 10_000 to 100_000. The smaller limit causes a huge increase in db query time, and through inspection we have not encountered paging recently. Further inspection required, especially in scenarios with millions of jobs.
@tomuram tomuram merged commit f789498 into main Dec 13, 2022
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.

1 participant