mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
create a multi-column index on user_id and state columns
This commit is contained in:
parent
b56610ca66
commit
aa96ccf50d
2 changed files with 17 additions and 0 deletions
6
packages/db/migrations/0162.do.create_more_index_on_library_item.sql
Executable file
6
packages/db/migrations/0162.do.create_more_index_on_library_item.sql
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
-- Type: DO
|
||||
-- Name: create_more_index_on_library_item
|
||||
-- Description: Create more indexes on omnivore.library_item table to improve query performance
|
||||
|
||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS library_item_user_id_state_idx ON omnivore.library_item (user_id, state);
|
||||
|
||||
11
packages/db/migrations/0162.undo.create_more_index_on_library_item.sql
Executable file
11
packages/db/migrations/0162.undo.create_more_index_on_library_item.sql
Executable file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue