create a multi-column index on user_id and state columns

This commit is contained in:
Hongbo Wu
2024-02-23 10:11:13 +08:00
parent b56610ca66
commit aa96ccf50d
2 changed files with 17 additions and 0 deletions

View 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);

File diff suppressed because one or more lines are too long