-- 187_study_questions_idx_topic.sql (2/5) -- 토픽 단위 목록·복습 추출의 기본 인덱스. soft-deleted 제외 partial index. -- subject/scope 보조 인덱스는 운영 후 EXPLAIN 보고 추가 (PR-2 1차 보류). CREATE INDEX IF NOT EXISTS idx_study_questions_topic ON study_questions (study_topic_id, created_at DESC, id) WHERE deleted_at IS NULL;