create a multi-column index on user_id and state columns
This commit is contained in:
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
Reference in New Issue
Block a user