Skip to content

Commit

Permalink
migration to add an appropriate index for queries with owner as those…
Browse files Browse the repository at this point in the history
… are always sorted by smth
  • Loading branch information
StanChe committed Jan 30, 2025
1 parent 7d9d55b commit 11e7a5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrations/11_owner_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX IF EXISTS assets_v3_owner;
CREATE INDEX IF NOT EXISTS idx_assets_v3_owner_pubkey ON assets_v3 (ast_owner, ast_pubkey DESC);

0 comments on commit 11e7a5c

Please sign in to comment.