Experiment Detail

MySQL Performance Monitoring

2026. 11. 18.

● System Ready

Experiment Detail Information

가격이 100,000원 이상인 상품 정보 조회 성능 비교

상품 테이블에서 특정 가격 이상의 데이터를 조회하고, 가격 컬럼의 인덱스 적용 전후 성능을 비교한다.

SQL Query

Query 2

SELECT * FROM product WHERE price >= 100000;

Index Condition

Registered Index Conditions

Query 2 - Condition 3

인덱스 미적용

Query 2 - Condition 4

인덱스 적용

테이블명: product

인덱스명: idx_product_price

인덱스 컬럼: price

Query 2

구분 평균 실행 시간 중앙값
Before 165.47 ms 165.16 ms
After (Condition 4) 151.77 ms 151.78 ms

Query 2

구분 1회차 2회차 3회차 4회차 5회차
Before 164.19 ms 165.16 ms 166.35 ms 165.00 ms 166.64 ms
After (Condition 4) 152.15 ms 151.34 ms 152.25 ms 151.78 ms 151.34 ms

Query 2

Before

EXPLAIN
product
접근 방식 (type)

ALL

선택 인덱스 (key)

없음

예상 행 수 (rows)

49769

필터 비율 (filtered)

33.33%

상세 실행 계획 정보
SELECT ID (id)

1

SELECT 유형 (select_type)

SIMPLE

파티션 (partitions)

없음

인덱스 길이 (key_len)

없음

참조 값 (ref)

없음

가능한 인덱스 (possible_keys)

없음

추가 정보 (Extra)

Using where

EXPLAIN ANALYZE
-> Filter: (product.price >= 100000)  (cost=5065 rows=16588) (actual time=18.9..29 rows=10229 loops=1)
    -> Table scan on product  (cost=5065 rows=49769) (actual time=0.189..26.6 rows=50000 loops=1)

After (Condition 4)

EXPLAIN
product
접근 방식 (type)

range

선택 인덱스 (key)

idx_product_price

예상 행 수 (rows)

10229

필터 비율 (filtered)

100.0%

상세 실행 계획 정보
SELECT ID (id)

1

SELECT 유형 (select_type)

SIMPLE

파티션 (partitions)

없음

인덱스 길이 (key_len)

4

참조 값 (ref)

없음

가능한 인덱스 (possible_keys)

idx_product_price

추가 정보 (Extra)

Using index condition

EXPLAIN ANALYZE
-> Index range scan on product using idx_product_price over (100000 <= price), with index condition: (product.price >= 100000)  (cost=4603 rows=10229) (actual time=0.582..16.9 rows=10229 loops=1)