Skip to content

조회 수 19539 추천 수 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 설치

    Date2010.05.03 ByADMINPLAY Views13059
    Read More
  2. mysql 설치 시 LinuxThreads 에러

    Date2008.10.30 ByADMINPLAY Views6712
    Read More
  3. mysql 설치 옵션 해석

    Date2009.08.08 ByADMINPLAY Views8948
    Read More
  4. mysql 설치시 컴파일에러 ../depcomp: line 512 exec : g++ : not found

    Date2009.08.08 ByADMINPLAY Views9727
    Read More
  5. MySQL 스토리지 엔진 MyISAM과 InnoDB의 차이

    Date2009.06.25 ByADMINPLAY Views8870
    Read More
  6. MySQL 오류 테이블 복원

    Date2010.05.29 Byl2zeo Views17412
    Read More
  7. mysql 외부접속

    Date2009.02.07 ByADMINPLAY Views8859
    Read More
  8. MySQL 외부접속

    Date2009.06.11 ByADMINPLAY Views14836
    Read More
  9. mysql 자세한 복구 방법 #1

    Date2008.11.11 ByADMINPLAY Views6864
    Read More
  10. mysql 자세한 복구 방법 #2

    Date2008.11.11 ByADMINPLAY Views7510
    Read More
  11. mysql 자주쓰는 명령어 정리

    Date2008.10.30 ByADMINPLAY Views7266
    Read More
  12. mysql 초간단 설치

    Date2009.10.15 ByADMINPLAY Views6799
    Read More
  13. MySQL 최대성능 올리기

    Date2009.07.19 ByADMINPLAY Views8012
    Read More
  14. mysql 쿼리문 모음

    Date2009.06.02 ByADMINPLAY Views13507
    Read More
  15. MySQL 클러스터

    Date2009.11.19 ByADMINPLAY Views10049
    Read More
  16. MySQL 테이블 복구하기 (쉴 프롬프트에서..)

    Date2008.11.11 ByADMINPLAY Views7591
    Read More
  17. MySQL 테이블명 대소문자 구분안하기

    Date2013.01.21 Byl2zeo Views11127
    Read More
  18. mysql 테이블이 손상된 경우 myisamchk

    Date2008.10.30 ByADMINPLAY Views7781
    Read More
  19. MySQL 튜닝 query cache 설정

    Date2011.04.09 ByADMINPLAY Views19539
    Read More
  20. MySQL 튜닝 값을 탐지해주는 유용한 툴

    Date2012.02.23 ByADMINPLAY Views22495
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234