create index for foreign keys
This commit is contained in:
@ -9,4 +9,8 @@ CREATE INDEX IF NOT EXISTS entity_labels_highlight_id_idx ON omnivore.entity_lab
|
||||
|
||||
CREATE INDEX IF NOT EXISTS highlight_library_item_id_idx ON omnivore.highlight (library_item_id);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS user_profile_user_id_idx ON omnivore.user_profile (user_id);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS library_item_user_id_idx ON omnivore.library_item (user_id);
|
||||
|
||||
COMMIT;
|
||||
|
||||
@ -9,4 +9,10 @@ DROP INDEX IF EXISTS highlight_library_item_id_idx;
|
||||
DROP INDEX IF EXISTS entity_labels_highlight_id_idx;
|
||||
DROP INDEX IF EXISTS entity_labels_library_item_id_idx;
|
||||
|
||||
DROP INDEX IF NOT EXISTS user_profile_user_id_idx;
|
||||
|
||||
DROP INDEX IF NOT EXISTS library_item_user_id_idx;
|
||||
|
||||
DROP INDEX IF NOT EXISTS recommendation_library_item_id_idx;
|
||||
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user