OverView

In-Memory 임 Disk 임?
둘다 씀.
(1) 우선 Memtable (In memory buffer) 에 쓰고
Memtable 이 가득차면 Immutable 상태로 변경시킨 후
(2) Level 0 Sorted Static File (SST) 로 flush
(3) (1)(2) 와 별도로 Write Ahead Logs (WAL) 저장
모든 쓰기 연산(Put, Delete, Merge) 을 기록(Log)
Disk storage 에 위치하고 이는 데이터 복원을 위해 쓰임.
Compaction (SST file L0 -> L1) 은 뭐하는거임?
중복 제거 및 병합 정렬하는 작업.
이미 존재하는 key value 데이터가 오버래핑 되는 것을 막아줌.
Reference
RocksDB Overview
A library that provides an embeddable, persistent key-value store for fast storage. - facebook/rocksdb
github.com
'기타' 카테고리의 다른 글
| curl 파일 다운로드시 Zero bytes (빈 파일) 생성 이슈 (1) | 2023.12.22 |
|---|---|
| MongoDB + Prometheus + Grafana (0) | 2023.07.24 |
| .ps1 (Powershell) 작성 요령 (0) | 2023.06.21 |
| IntelliJ IDEA 모듈 (0) | 2021.09.27 |