업무에 대용량 데이터를 핸들링할 일이 생겼다. Query의 속도도 문제지만 해당 데이터를 불러와 loading해야 하는데
실행되지 않는다. 이때 innodb_buffer_pool_size를 조정, 문제를 해결 했다.
# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
# row data. The bigger you set this the less disk I/O is needed to
# access data in tables. On a dedicated database server you may set this
# parameter up to 80% of the machine physical memory size. Do not set it
# too large, though, because competition of the physical memory may
# cause paging in the operating system. Note that on 32bit systems you
# might be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=8M
기본값은 8M 크기로 1G 정도로 변경 후 해결되었는데 my.ini에서도 언급되었듯이 너무큰 값은 설정하지
말란다.
'데이터베이스' 카테고리의 다른 글
MYSQL 테이블 대소문자 구분 안하기 (0) | 2022.07.21 |
---|---|
MySQL 테이블 생성 Query 확인 (0) | 2022.01.26 |
MySQL WorkBench에서 사용관련 정리 (0) | 2021.06.03 |
MySQL WorkBench Configuration file 경로 (0) | 2021.05.31 |
MSSQL에서 SELECT Query에 사용한 declare syntax를 MySQL 사용하기 (0) | 2021.05.09 |