Skip to content

Commit 655547d

Browse files
committed
Add new indexes to improve booking performance
After the changes on the gpu PR AcademySoftwareFoundation#924 the performance of the booking query degraded up to 4 times the previous throughput. Creating some indexes for columns that changed names seems to have fixed the problem. Signed-off-by: Diego Tavares <[email protected]>
1 parent d2057d3 commit 655547d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
--Performance issue, Created new index on column int_gpus_min
3+
4+
-- DROP INDEX IF EXISTS public.i_layer_int_gpu_mem_min;
5+
6+
CREATE INDEX IF NOT EXISTS i_layer_int_gpu_mem_min
7+
ON public.layer USING btree
8+
(int_gpus_min ASC NULLS LAST)
9+
TABLESPACE pg_default;
10+
11+
-- DROP INDEX IF EXISTS public.i_layer_int_gpu_mem_min_1;
12+
13+
CREATE INDEX IF NOT EXISTS i_layer_int_gpu_mem_min_1
14+
ON public.layer USING btree
15+
(int_gpu_min ASC NULLS LAST)
16+
TABLESPACE pg_default;
17+
18+
-- Created Indexes on Jun-26-2023 to improve query performance
19+
20+
create index concurrently i_layer_int_cores_max on layer(int_cores_max);
21+
22+
create index concurrently i_job_resource_int_priority on job_resource(int_priority);
23+
24+
create index concurrently i_job_int_min_cores on job(int_min_cores);
25+
26+
create index concurrently i_layer_limit_pk_layer on layer_limit(pk_layer);
27+
28+
create index concurrently i_folder_resource_int_cores on folder_resource(int_cores);
29+
30+
create index concurrently i_job_ts_updated on job(ts_updated);
31+
32+
create index concurrently i_layer_str_tags on layer(str_tags);

0 commit comments

Comments
 (0)