feat(migration): V48 add composite index on transcription_blocks(document_id, reviewed)

Speeds up the bulk completion percentage query added in previous commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-19 23:19:24 +02:00
parent 8df0c3a1ef
commit 71c02626f4

View File

@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS idx_transcription_blocks_document_reviewed
ON transcription_blocks (document_id, reviewed);