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

Add new indexes to improve booking performance #1304

Merged
Changes from 2 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

--Performance issue, Created new index on column int_gpus_min

-- DROP INDEX IF EXISTS public.i_layer_int_gpu_mem_min;
DiegoTavares marked this conversation as resolved.
Show resolved Hide resolved

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;

-- DROP INDEX IF EXISTS public.i_layer_int_gpu_mem_min_1;
DiegoTavares marked this conversation as resolved.
Show resolved Hide resolved

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;

-- Created Indexes on Jun-26-2023 to improve query performance
DiegoTavares marked this conversation as resolved.
Show resolved Hide resolved

create index concurrently i_layer_int_cores_max on layer(int_cores_max);
Copy link
Collaborator

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 ...


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);
Loading