슬로우쿼리 한 번 확인 부탁드립니다 ㅠ.ㅠ!! 채택완료
슬로우쿼리를 설정하면 어떤 부분에서 문제가 있는 지 알 수 있다고 해서 설정해봤는데요 ..!
쿼리문을 봐도 뭐가 문제 인 지를 모르겠습니다 ㅠ.ㅠ
아래가 슬로우 쿼리 코드입니다 ..
# Time: 140811 16:49:06
# User@Host: root[root] @ [192.168.0.2]
# Query_time: 6.290219 Lock_time: 0.000019 Rows_sent: 0 Rows_examined: 483059
SET timestamp=1407743346;
select wr_id, wr_subject from g4_write_free where wr_is_comment = 0 and wr_num < '-28321' and ca_name = '%EB%8C%80%ED%99%94' order by wr_num desc, wr_reply desc limit 1;
# Time: 140811 16:49:13
# User@Host: root[root] @ [192.168.0.2]
# Query_time: 6.436336 Lock_time: 0.000020 Rows_sent: 0 Rows_examined: 483060
SET timestamp=1407743353;
select wr_id, wr_subject from g4_write_free where wr_is_comment = 0 and wr_num < '-28321' and ca_name = '%EB%8C%80%ED%99%94' order by wr_num desc, wr_reply desc limit 1;
ㅜ,ㅜ,,,
뭐가 문제인지 .. 쿼리 튜닝을 할 수 있는지 답변 주시면 감사하겠습니다 ..!
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인
그런데 ca_name 옆에 있는 wr_num 에 대해서는 설정 할 필요는 없는 건가요?