-
Notifications
You must be signed in to change notification settings - Fork 205
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
Add new indexes to improve booking performance #1304
Merged
DiegoTavares
merged 5 commits into
AcademySoftwareFoundation:master
from
DiegoTavares:add_database_indexes
Jan 30, 2024
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
655547d
Add new indexes to improve booking performance
DiegoTavares a5998e4
Merge branch 'AcademySoftwareFoundation:master' into add_database_ind…
DiegoTavares 9fe80b5
Update cuebot/src/main/resources/conf/ddl/postgres/migrations/V18_Add…
DiegoTavares 494469f
Update cuebot/src/main/resources/conf/ddl/postgres/migrations/V18_Add…
DiegoTavares f502513
Update cuebot/src/main/resources/conf/ddl/postgres/migrations/V18_Add…
DiegoTavares File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
cuebot/src/main/resources/conf/ddl/postgres/migrations/V18_Add_New_Indexes
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,29 @@ | ||
|
||
--Performance issue, Created new index on column int_gpus_min | ||
|
||
|
||
CREATE INDEX IF NOT EXISTS i_layer_int_gpu_mem_min | ||
ON public.layer USING btree | ||
(int_gpus_min ASC NULLS LAST) | ||
TABLESPACE pg_default; | ||
|
||
|
||
CREATE INDEX IF NOT EXISTS i_layer_int_gpu_mem_min_1 | ||
ON public.layer USING btree | ||
(int_gpu_min ASC NULLS LAST) | ||
TABLESPACE pg_default; | ||
|
||
|
||
create index concurrently i_layer_int_cores_max on layer(int_cores_max); | ||
|
||
create index concurrently i_job_resource_int_priority on job_resource(int_priority); | ||
|
||
create index concurrently i_job_int_min_cores on job(int_min_cores); | ||
|
||
create index concurrently i_layer_limit_pk_layer on layer_limit(pk_layer); | ||
|
||
create index concurrently i_folder_resource_int_cores on folder_resource(int_cores); | ||
|
||
create index concurrently i_job_ts_updated on job(ts_updated); | ||
|
||
create index concurrently i_layer_str_tags on layer(str_tags); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use consistent capitalization within the file -- preferred
CREATE INDEX CONCURRENTLY ... ON ...