MySQL 실행계획 분석
학습자료 : 업무에 바로 쓰는 SQL 튜닝, 양바른 저
실행계획 조회시 의미하는 정보들
1. id
2. select_type
SIMPLE
PRIMARY
SUBQUERY
DERIVED
UNION
UNION RESULT
DEPENDENT SUBQUERY
DEPENDENT UNION
UNCACHEABLE SUBQUERY
MATERIALIZED
3. table
4. partitions
5. type
system
const
eq_ref
ref
ref_or_null
range
fulltext
index_merge
index
ALL
6. possible_keys
7. key
8. key_len
9. ref
10. rows
11. filtered
12. extra
Distinct
Using where
Using temporary
Using index
Using filesort
Using join buffer
Using union/Using intersect/ Using sort_union
Using index condition
Using index condition(BKA)
Using index for group-by
Not exists
MySQL의 학장된 실행 계획 수행
EXPLAIN FORMAT = TRADITIONAL
EXPLAIN ANALYZE
Last updated