테스트 사이트 - 개발 중인 베타 버전입니다

10초이상 걸리는 쿼리 어떻게 잡아야될까요. ㅠㅠ 채택완료

qkrqudaks 9년 전 조회 3,287

# Query_time: 4.237551  Lock_time: 3.224482  Rows_sent: 15  Rows_examined: 416595

# Rows_affected: 0

SET timestamp=1459829277;

select distinct bo_table from g5_board_new where bn_datetime >= '2016-04-04 13:07:51' and wr_id = wr_parent;

# Query_time: 15.998333  Lock_time: 14.974187  Rows_sent: 15  Rows_examined: 416595
# Rows_affected: 0
SET timestamp=1459829277;
select distinct bo_table from g5_board_new where bn_datetime >= '2016-04-04 13:07:40' and wr_id = wr_parent;
댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
9년 전

http://ra2kstar.tistory.com/96">http://ra2kstar.tistory.com/96 

인덱스를 추가해 보세요. 

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인