Skip to content

Commit

Permalink
Add index for datastore ID in tables
Browse files Browse the repository at this point in the history
Fixes #439
  • Loading branch information
turt2live committed Aug 20, 2023
1 parent c5a5811 commit 044e077
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrations/26_add_datastore_id_indexes_down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX IF EXISTS idx_datastore_id_thumbnails;
DROP INDEX IF EXISTS idx_datastore_id_media;
2 changes: 2 additions & 0 deletions migrations/26_add_datastore_id_indexes_up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS idx_datastore_id_thumbnails ON thumbnails(datastore_id);
CREATE INDEX IF NOT EXISTS idx_datastore_id_media ON media(datastore_id);

0 comments on commit 044e077

Please sign in to comment.