MySQL Workbench를 이용한 쿼리 개선

-> 확연한 개선 (Latency : 1120ms -> 894ms, Average : 579ms -> 380ms)
1번 쿼리 - todo_list 조회


->
Query cost
index 제외 : 100.45
단일 index
- member만 : 12.35
- start_date만 : 109.61
복합 index(2개)
- member, start_date : 3.41
- start_date, member : 102.86
2번 쿼리 - 달성 개수 조회(2번 join이 들어감)


->
Query cost
index 제외 : 101.74
단일 index
- member만 : 34.23
- start_date만 : 113.64
- member, start_date : 61.08
복합 index(2개)
- member, start_date : 18.53
- start_date, member : 67.75
단일 index(todo에서)
- is_achieved : 19.44(전체 상황에서 동일)
3번 쿼리 - 좋아요 개수 조회(1번 join이 들어감)


->
Query cost
todo_list에서는 위에 비용이 적은 복합 index(2개, member, start_date를 적용)
1. index 제외 : 10.60
단일 index
- todo_list : 6.05