Composite

복합 인덱스는 컬럼을 하나의 정렬 사전으로 묶는다

(user_id, order_date, status)는 user_id 안에서 날짜와 상태가 이어지는 순서로 정렬된다.

선두
다음
순서
index key정렬 의미
user_id가장 먼저 묶음WHERE user_id
order_dateuser 안에서 날짜순range/order
status앞 조건 뒤 보조filter