Skip to content

조회 수 19337 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
query cache 설정을 하지 않았을때와 했을때는 엄청난 차이가 난다. 

본인이 직접 13만건데이터를 테스트 해본결과 cpu부하율은 80% 에서 0.2% 떨어졌고 검색 속도시간은 2.12초에서 0.00초로 단축됐다.. 

쿼리 내용은 
select count(*) from 테이블명 

이런퀄리를 계속 적으로 반복 됐지만 캐싱이 되지 않아 버벅 되는 모습을 보였다.. 

더욱이 innodb를 사용한다면 다음셋팅을 반드시 해주어야 한다 isam 방식에서는 별다른 차이를 못느꼈지만 innodb방식의 경우는 이 튜닝을 해주지 않고서는 5만건 이상되는 테이블을 서비스하기가 부담이 된다. 

#####----- query cache setting -----##### 
set-variable = query_cache_limit=1M 
set-variable = query_cache_size=2M 
set-variable = query_cache_type=1 

#####----- innodb setting -----##### 
# 주석을 제거 한후 셋팅 
innodb_data_home_dir = /usr/local/mysql/data 
innodb_data_file_path = ibdata1:1000M:autoextend 
innodb_buffer_pool_size = 16M 
 
 
TAG •

  1. 서버에서 mysql euckr과 utf8 같이 사용하기

    Date2010.05.03 ByADMINPLAY Views12799
    Read More
  2. latin1 로 저장된 db 를 euckr 또는 utf8로 변환하는 방법

    Date2010.05.28 ByADMINPLAY Views16542
    Read More
  3. [MySQL] OPTIMIZE, TRUNCATE, 테이블복구, DB공간제한

    Date2010.05.29 Byl2zeo Views16489
    Read More
  4. MySQL errno 의미 확인

    Date2010.05.29 Byl2zeo Views16591
    Read More
  5. MySQL 오류 테이블 복원

    Date2010.05.29 Byl2zeo Views17267
    Read More
  6. mysql old_password 문제

    Date2010.06.19 ByADMINPLAY Views18451
    Read More
  7. libmysqlclient.so.15: cannot open shared object file: No such file or directory

    Date2010.07.07 ByADMINPLAY Views22843
    Read More
  8. ../depcomp: line 571: exec: g++: not found

    Date2010.11.26 ByADMINPLAY Views19499
    Read More
  9. MySQL의 호스트 블럭킹 & max_connect_errors

    Date2011.03.09 ByADMINPLAY Views17772
    Read More
  10. MySQL에서 Query Cache 사용하기

    Date2011.03.18 ByADMINPLAY Views15860
    Read More
  11. FULLTEXT 인덱스와 서치

    Date2011.04.09 ByADMINPLAY Views17437
    Read More
  12. Mysql - Query Cache

    Date2011.04.09 ByADMINPLAY Views18383
    Read More
  13. MySQL 튜닝 query cache 설정

    Date2011.04.09 ByADMINPLAY Views19337
    Read More
  14. [MySQL 5.1.4] /bin/rm: cannot remove `libtoolT': No such file or directory

    Date2012.01.16 ByADMINPLAY Views18415
    Read More
  15. MYSQL 4.0 --> 5.1 마이그레이션

    Date2012.01.16 ByADMINPLAY Views17157
    Read More
  16. [데이터베이스] [DBMS-MYSQL] "SHOW PROCESSLIST"시 state 종류 및 설명

    Date2012.01.16 ByADMINPLAY Views15928
    Read More
  17. mysql - copying to tmp table

    Date2012.01.16 ByADMINPLAY Views18092
    Read More
  18. MySQL 튜닝 값을 탐지해주는 유용한 툴

    Date2012.02.23 ByADMINPLAY Views22354
    Read More
  19. mysql 다중 서버 관리

    Date2012.12.17 ByADMINPLAY Views17271
    Read More
  20. innodb recovery

    Date2013.01.21 Byl2zeo Views11130
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234