Skip to content

Commit

Permalink
Add indexes to sha256_hash on media/thumbnail tables
Browse files Browse the repository at this point in the history
CAUTION: This might take a while

Fixes #133
  • Loading branch information
turt2live committed Feb 3, 2019
1 parent aa520f8 commit 0616245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrations/8_sha256_indexes_down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX IF EXISTS idx_sha256_hash_media;
DROP INDEX IF EXISTS idx_sha256_hash_thumbnails;
2 changes: 2 additions & 0 deletions migrations/8_sha256_indexes_up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS idx_sha256_hash_media ON media (sha256_hash);
CREATE INDEX IF NOT EXISTS idx_sha256_hash_thumbnails ON thumbnails (sha256_hash);

0 comments on commit 0616245

Please sign in to comment.