diff --git a/backend/src/main/resources/db/migration/V142__Add_book_file_ingest_indexes.sql b/backend/src/main/resources/db/migration/V142__Add_book_file_ingest_indexes.sql new file mode 100644 index 000000000..b7d66f140 --- /dev/null +++ b/backend/src/main/resources/db/migration/V142__Add_book_file_ingest_indexes.sql @@ -0,0 +1,2 @@ +CREATE INDEX IF NOT EXISTS idx_book_file_current_hash ON book_file (current_hash); +CREATE INDEX IF NOT EXISTS idx_book_file_path ON book_file (file_sub_path(255), file_name(255));