- a single put operation just result one disk write and one memory write(一次写入操作只涉及一次磁盘顺序写和一次内存写入)
Memtable -> Immutable Memtable -> SSTable
(skiplist) (bloomfilter)
Status s = DB::Open(options, kDBPath, &db);
s = db->Put(WriteOptions(), "key1", "value");
-
Update WAL(more info: WAL)
-
Update Memory table(more info: skiplist)
-
Switch to immutable memtable
-
Compaction(more info: compaction)