Skip to content

fix: add index to provisioner_jobs.started_at #5245

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
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: add index to provisioner_jobs.started_at
  • Loading branch information
coadler committed Dec 2, 2022
commit 18fd8ca5e57ca7df65f1b0ee2fc290ee3e1b84aa
2 changes: 2 additions & 0 deletions coderd/database/dump.sql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP INDEX provisioner_jobs_started_at_idx;
2 changes: 2 additions & 0 deletions coderd/database/migrations/000085_acquire_job_index.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX provisioner_jobs_started_at_idx ON provisioner_jobs USING btree (started_at)
WHERE started_at IS NULL;