Skip to content

perf(coderd): simplify insights queries to speed them up #9299

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

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

mafredri
Copy link
Member

Turns out trying to help PostgreSQL had turned this query from an idex scan to a sequential scan with sorting, on tested dataset query speed went from ~5s -> ~0.5s.

@mafredri mafredri requested review from johnstcn and mtojek August 24, 2023 10:34
Base automatically changed from mafredri/test-improve-template-insights-tests to main August 24, 2023 10:36
@mafredri mafredri force-pushed the mafredri/perf-improve-tempalte-insights branch from 0106f1c to 446993b Compare August 24, 2023 10:37
@johnstcn
Copy link
Member

This sounds like a good case for having a benchmark where we load a bunch of raw data from a file.

@mafredri mafredri enabled auto-merge (squash) August 24, 2023 10:48
@mafredri mafredri merged commit d00817e into main Aug 24, 2023
@mafredri mafredri deleted the mafredri/perf-improve-tempalte-insights branch August 24, 2023 10:52
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants