mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Add more indexes
This commit is contained in:
parent
11b4f642a6
commit
27c2562a7f
2 changed files with 9 additions and 9 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue