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 -- 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" CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedIP"
ON public."sponsorTimes" USING btree ON public."sponsorTimes" USING btree
("hashedIP" COLLATE pg_catalog."default" ASC NULLS LAST) ("hashedIP" COLLATE pg_catalog."default" ASC NULLS LAST)
TABLESPACE pg_default; TABLESPACE pg_default;
CREATE INDEX "privateDB_sponsorTimes_videoID"
ON public."sponsorTimes" USING btree
("videoID" ASC NULLS LAST)
;
-- votes -- votes
CREATE INDEX IF NOT EXISTS "votes_userID" CREATE INDEX IF NOT EXISTS "votes_userID"

View file

@ -14,10 +14,10 @@ CREATE INDEX IF NOT EXISTS "sponsorTimes_UUID"
ON public."sponsorTimes" USING btree ON public."sponsorTimes" USING btree
("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" CREATE INDEX "sponsorTimes_hashedVideoID_gin"
ON public."sponsorTimes" USING btree ON public."sponsorTimes" USING gin
("hashedVideoID" COLLATE pg_catalog."default" ASC NULLS LAST, category COLLATE pg_catalog."default" ASC NULLS LAST, "startTime" ASC NULLS LAST) ("hashedVideoID" COLLATE pg_catalog."default" gin_trgm_ops, category COLLATE pg_catalog."default" gin_trgm_ops)
TABLESPACE pg_default; TABLESPACE pg_default;
CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID" CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID"