e3a065d15d
asyncpg prepared statement가 multi-command를 지원하지 않아 시작 실패. 105 단일 파일을 105-112 개별 statement로 분리. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 lines
205 B
SQL
3 lines
205 B
SQL
-- 112: 메모 목록 최적화 인덱스 (핀 우선 + 최신순)
|
|
CREATE INDEX IF NOT EXISTS idx_documents_notes ON documents(pinned DESC, created_at DESC) WHERE file_type = 'note' AND deleted_at IS NULL
|