Skip to main content

check-a-database-index

Check whether a database index supports a real query using definition, selectivity, plan, statistics, write cost, and production-safe evidence. Use when query latency or index usefulness is uncertain.

소스 정보

저장소
protosphinx/sphinxstack
최근 소스 활동
2026년 7월 29일 13:55
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
check-a-database-index
category
code
description
Check whether a database index supports a real query using definition, selectivity, plan, statistics, write cost, and production-safe evidence. Use when query latency or index usefulness is uncertain.
# check-a-database-index An index that exists may be unused, unsafe, redundant, or expensive. ## When to use - Use for a named query and database version with representative data. - Do not create or drop production indexes without approved change and rollback. ## Preconditions - Capture query shape, parameters safely, schema, index definitions, statistics, workload, locks, and latency evidence. ## Procedure 1. Confirm the exact query, predicates, joins, order, limits, and parameter distribution. 2. Inspect index columns, order, uniqueness, filters, expressions, includes, validity, and size. 3. Refresh or assess statistics through the authorized route. 4. Compare safe execution plans with representative parameters and data volume. 5. Check scans, estimates, rows, sorts, lookups, memory, I/O, and runtime. 6. Evaluate write amplification, storage, locks, maintenance, overlap, and failure risk. 7. Record keep, change, test, or remove recommendation with a reversible proof plan. ## Failure plan - If production execution is unsafe, use plan-only or a representative clone and label the limit. ## Worked example An index begins with low-selectivity status while the query filters tenant then date, so a candidate order is tested against both read gain and insert cost. ## Done - An index review report records query, definitions, statistics, plans, performance, write cost, risk, and recommendation - Representative-parameter, estimate, lock, storage, regression, rollback, and production-safety checks verify the decision
GitHub에서 보기