perf(search): add index on transcription_blocks.document_id for lateral join
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
-- Index on transcription_blocks.document_id to speed up the LATERAL join
|
||||||
|
-- used in DocumentService.findEnrichmentData (FTS match enrichment).
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_transcription_blocks_document_id
|
||||||
|
ON transcription_blocks (document_id);
|
||||||
Reference in New Issue
Block a user