Add more indexes

This commit is contained in:
Ajay Ramachandran 2021-03-23 23:46:46 -04:00
parent 11b4f642a6
commit 27c2562a7f
2 changed files with 9 additions and 9 deletions

View file

@ -1,15 +1,15 @@
-- sponsorTimes
CREATE INDEX IF NOT EXISTS "idx_16928_sponsorTimes_hashedIP"
ON public."sponsorTimes" USING btree
("hashedIP" COLLATE pg_catalog."default" ASC NULLS LAST)
TABLESPACE pg_default;
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedIP"
ON public."sponsorTimes" USING btree
("hashedIP" COLLATE pg_catalog."default" ASC NULLS LAST)
TABLESPACE pg_default;
CREATE INDEX "privateDB_sponsorTimes_videoID"
ON public."sponsorTimes" USING btree
("videoID" ASC NULLS LAST)
;
-- votes
CREATE INDEX IF NOT EXISTS "votes_userID"

View file

@ -15,9 +15,9 @@ CREATE INDEX IF NOT EXISTS "sponsorTimes_UUID"
("UUID" COLLATE pg_catalog."default" ASC NULLS LAST)
TABLESPACE pg_default;
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID"
ON public."sponsorTimes" USING btree
("hashedVideoID" COLLATE pg_catalog."default" ASC NULLS LAST, category COLLATE pg_catalog."default" ASC NULLS LAST, "startTime" ASC NULLS LAST)
CREATE INDEX "sponsorTimes_hashedVideoID_gin"
ON public."sponsorTimes" USING gin
("hashedVideoID" COLLATE pg_catalog."default" gin_trgm_ops, category COLLATE pg_catalog."default" gin_trgm_ops)
TABLESPACE pg_default;
CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID"