-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: add indexes to tasks and allocations (#8757)
- Loading branch information
1 parent
e0e6cf0
commit 71db4e1
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
master/static/migrations/20240202082938_index-some-alloc-tasks-fields.tx.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DROP INDEX ix_allocations_task_id; | ||
|
||
DROP INDEX ix_tasks_job_id; |
3 changes: 3 additions & 0 deletions
3
master/static/migrations/20240202082938_index-some-alloc-tasks-fields.tx.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CREATE INDEX ix_allocations_task_id ON allocations USING btree (task_id); | ||
|
||
CREATE INDEX ix_tasks_job_id ON tasks USING btree (job_id); |