mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 05:57:04 +03:00
Better indexes
This commit is contained in:
@@ -15,14 +15,14 @@ CREATE INDEX IF NOT EXISTS "sponsorTimes_UUID"
|
|||||||
("UUID" COLLATE pg_catalog."default" ASC NULLS LAST)
|
("UUID" COLLATE pg_catalog."default" ASC NULLS LAST)
|
||||||
TABLESPACE pg_default;
|
TABLESPACE pg_default;
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID_gin"
|
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID"
|
||||||
ON public."sponsorTimes" USING gin
|
ON public."sponsorTimes" USING btree
|
||||||
("hashedVideoID" COLLATE pg_catalog."default" gin_trgm_ops, category COLLATE pg_catalog."default" gin_trgm_ops)
|
(service COLLATE pg_catalog."default" ASC NULLS LAST, "hashedVideoID" text_pattern_ops ASC NULLS LAST, "startTime" ASC NULLS LAST)
|
||||||
TABLESPACE pg_default;
|
TABLESPACE pg_default;
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID"
|
CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID"
|
||||||
ON public."sponsorTimes" USING btree
|
ON public."sponsorTimes" USING btree
|
||||||
("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)
|
(service COLLATE pg_catalog."default" ASC NULLS LAST, "videoID" COLLATE pg_catalog."default" ASC NULLS LAST, "startTime" ASC NULLS LAST)
|
||||||
TABLESPACE pg_default;
|
TABLESPACE pg_default;
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS "sponsorTimes_description_gin"
|
CREATE INDEX IF NOT EXISTS "sponsorTimes_description_gin"
|
||||||
|
|||||||
Reference in New Issue
Block a user