Files
omnivore/packages/db/migrations/0160.do.drop_slow_db_triggers.sql

12 lines
367 B
PL/PgSQL
Executable File

-- Type: DO
-- Name: drop_slow_db_triggers
-- Description: Drop some db triggers which are slow and have cascading effect
BEGIN;
DROP TRIGGER IF EXISTS library_item_labels_update ON omnivore.entity_labels;
DROP TRIGGER IF EXISTS library_item_highlight_annotations_update ON omnivore.highlight;
DROP TRIGGER IF EXISTS label_names_update ON omnivore.labels;
COMMIT;