m

개발자님들, 슬로우쿼리 문제 좀 봐주세요!!!

카페 24 호스팅을 이용하고 있는데요.

매일 동시접속자가 600명 정도 몰리는 시간대에는 꼭 슬로우쿼리 문제로

mysql connect error!

이라는 메시지가 뜨면서 사이트 접속이 안 됩니다.

카페24에서 보내준 메일입니다

저는 쿼리가 뭔지도 모르는 사람이라 도대체 뭘 어떻게 수정하라는 건지 모르겠습니다ㅜㅜ

개발자님들, 초보자가 알아듣기 쉽게 설명 좀 부탁드립니다

-------------------------------------------------------------

안녕하세요.

카페24 호스팅입니다.

 

| 144 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |

| 149 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |

| 150 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  ! ;select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |

| 153 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |

| 157 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |

| 160 | drama24net | localhost      ! | drama24net | Query   |    5 | removing tmp t! able &nb sp;         | select * from (  select ''welcometosiworld'' as bo_table, g5_write_welcometosiworld.wr_id, g5_write_we |        20 |        428116 |        21 |

| 161 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |

| 163 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |

!

| 165 | drama24net | localhost       | drama24net | Query   |    5 | removing tmp table           | select * from (  select ''s_drama'' as bo_table, g5_write_s_drama.wr_id, g5_write_s_drama.wr_parent, g |         0 |          8506 |      2130 |


 

해당 쿼리쪽에서 발생된 문제로 해당 부분 확인하여 수정 처리 해주셔야 가능한 부분이며

수정되지 않으면 같은 문제가 발생될수 있는 부분 참고하여주시기 바랍니다.

------------------------------------------------------------

 

|

댓글 4개

쿼리 모르면 답이 없습니다.
제작의뢰에 가보세요
subquery는 인덱스도 안타고 부하도 많이 걸립니다.
게다가 데이터가 많아지면 부하량은 거의 제곱으로 걸리기 때문에 해당 부분은 ....

제작의뢰로~ 가셔서 해결하셔야 할것 같습니다.
진서기님, 라엘님, 조언 정말 감사합니다
상태가 removing tmp table 인걸로 봐서
서브쿼리를 많이 실행하는데, tmp_memory 가 적어서 발생하는거 같네요.

my.cnf 에
max_heap_size 와 tmp_table_size 를 256M 이상으로 설정하고
mysql 재시작해주세요.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
11년 전 조회 2,557
11년 전 조회 1,878
11년 전 조회 1,662
11년 전 조회 2,281
11년 전 조회 1,586
11년 전 조회 4,461
11년 전 조회 4,372
11년 전 조회 1,889
11년 전 조회 3,120
11년 전 조회 1,541
11년 전 조회 2,326
11년 전 조회 3,926
11년 전 조회 4,242
11년 전 조회 5,149
11년 전 조회 1,532
11년 전 조회 2,101
11년 전 조회 3,504
11년 전 조회 1,692
11년 전 조회 1,701
11년 전 조회 2,278
11년 전 조회 1,589
11년 전 조회 2,808
11년 전 조회 2,326
11년 전 조회 4,382
11년 전 조회 2,841
11년 전 조회 5,114
11년 전 조회 1,902
11년 전 조회 1,778
11년 전 조회 2,432
11년 전 조회 2,398
11년 전 조회 1,974
11년 전 조회 1,581
11년 전 조회 2,252
11년 전 조회 1,755
11년 전 조회 1,732
11년 전 조회 1,932
11년 전 조회 1,857
11년 전 조회 1,483
11년 전 조회 2,682
11년 전 조회 2,636
11년 전 조회 3,777
11년 전 조회 1,800
11년 전 조회 1,535
11년 전 조회 1,525
11년 전 조회 3,462
11년 전 조회 1,647
11년 전 조회 1,987
11년 전 조회 1,513
11년 전 조회 2,148
11년 전 조회 2,129
11년 전 조회 1,534
11년 전 조회 1,724
11년 전 조회 1,548
11년 전 조회 1,516
11년 전 조회 2,189
11년 전 조회 1,634
11년 전 조회 1,543
11년 전 조회 1,698
11년 전 조회 1,682
11년 전 조회 1,399
11년 전 조회 1,564
11년 전 조회 1,968
11년 전 조회 1,613
11년 전 조회 1,872
11년 전 조회 1,624
11년 전 조회 1,566
11년 전 조회 1,807
11년 전 조회 1,533
11년 전 조회 1,551
11년 전 조회 1,628
11년 전 조회 2,538
11년 전 조회 1,583
11년 전 조회 1,583
11년 전 조회 1,389
11년 전 조회 1,860
11년 전 조회 1,579
11년 전 조회 1,397
11년 전 조회 1,837
11년 전 조회 2,050
11년 전 조회 1,803
11년 전 조회 1,647
11년 전 조회 1,774
11년 전 조회 2,618
11년 전 조회 1,547
11년 전 조회 1,630
11년 전 조회 3,538
11년 전 조회 3,076
11년 전 조회 1,953
11년 전 조회 2,465
11년 전 조회 1,884
11년 전 조회 1,839
11년 전 조회 2,121
11년 전 조회 2,581
11년 전 조회 1,550
11년 전 조회 2,590
11년 전 조회 2,902
11년 전 조회 1,501
11년 전 조회 1,683
11년 전 조회 1,361
11년 전 조회 2,346