Files
mtusi2026lab6/src/internal/store/migrations/012_attachment_sha256_index.sql
T
2026-11-19 18:40:32 +03:00

6 lines
228 B
SQL

-- Ускоряет поиск существующих файлов с тем же содержимым.
CREATE INDEX IF NOT EXISTS idx_attachments_sha256_status
ON attachments (sha256, status)
WHERE status = 'ready';