Configuring In-Memory Engine in MySQL
2023. 4. 3. 12:58ㆍit
반응형
0. Specs
- In MySQL 5.7 and above, the in-memory engine is provided by default.
1. TASKS
1-1. Open the configuration file (my.cnf) and activate the in-memory engine.
728x90
[mysqld]
default_storage_engine=InnoDB
innodb_buffer_pool_size=256M
1-2. Restart MySQL.
1-3. Create in-memory tables.
반응형
CREATE TABLE example (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(50),
PRIMARY KEY (id)
) ENGINE=MEMORY;
This engine stores data in memory, providing faster speed and lower latency.
While the in-emory engine is very fast and has excellent performance,
its performance may be affected by the available memory.
Additionally, since the data is stored in memory instead of in the database,
recovering data in the event of a system failure can be difficult.
Therefore, it is important to use the in-memory engine appropriately, taking these drawbacks into consideration.
반응형
'it' 카테고리의 다른 글
파이썬 멀티 프로세스 공유 메모리 설정 ( Manager ) (0) | 2023.04.07 |
---|---|
파이썬 멀티 쓰레드 예제 정리 ( Join, Lock, Queue ) (0) | 2023.04.06 |
mysql 모니터링( slow 쿼리 찾기 ) (0) | 2023.03.30 |
우분투(ubuntu)에서 Apache Ignite 설치 및 인메모리(inmemory) 설정, 그리고 캐시(cache) 데이터 샘플 (0) | 2023.03.27 |
우분투(ubuntu) 하둡(hadoop) 설치 가이드 (0) | 2023.03.26 |