Skip to content

Commit 634d5d0

Browse files
committed
Better indexes
1 parent d67b9cd commit 634d5d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

databases/_sponsorTimes_indexes.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ CREATE INDEX IF NOT EXISTS "sponsorTimes_UUID"
1515
("UUID" COLLATE pg_catalog."default" ASC NULLS LAST)
1616
TABLESPACE pg_default;
1717

18-
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID_gin"
19-
ON public."sponsorTimes" USING gin
20-
("hashedVideoID" COLLATE pg_catalog."default" gin_trgm_ops, category COLLATE pg_catalog."default" gin_trgm_ops)
18+
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID"
19+
ON public."sponsorTimes" USING btree
20+
(service COLLATE pg_catalog."default" ASC NULLS LAST, "hashedVideoID" text_pattern_ops ASC NULLS LAST, "startTime" ASC NULLS LAST)
2121
TABLESPACE pg_default;
2222

2323
CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID"
2424
ON public."sponsorTimes" USING btree
25-
("videoID" COLLATE pg_catalog."default" ASC NULLS LAST, service COLLATE pg_catalog."default" ASC NULLS LAST, category COLLATE pg_catalog."default" ASC NULLS LAST, "timeSubmitted" ASC NULLS LAST)
25+
(service COLLATE pg_catalog."default" ASC NULLS LAST, "videoID" COLLATE pg_catalog."default" ASC NULLS LAST, "startTime" ASC NULLS LAST)
2626
TABLESPACE pg_default;
2727

2828
CREATE INDEX IF NOT EXISTS "sponsorTimes_description_gin"

0 commit comments

Comments
 (0)