Skip to content

Commit

Permalink
Improve trending index
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Feb 16, 2024
1 parent 00351c7 commit f1383b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/database/migrations/postgres/32_fingerprints.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DROP TABLE "_scene_fingerprints";

CREATE INDEX "scene_fingerprints_fingerprint_idx" ON "scene_fingerprints" (fingerprint_id);
CREATE INDEX "scene_fingerprints_user_idx" on "scene_fingerprints" (user_id);
CREATE INDEX "scene_fingerprints_created_at" on "scene_fingerprints" (created_at);
CREATE INDEX "scene_fingerprints_created_at" on "scene_fingerprints" (created_at, scene_id);


-- Create phash index if bktree is available
Expand Down

0 comments on commit f1383b4

Please sign in to comment.