google / google/leveldb

why not use a immutable vector?

Open
#398 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
39.4k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

If we insert into leveldb quickly , the memtable will be also full quickly, but if the immutable do not write to disk, the main thread will be blocked to wait imm=NULL ;

So i want know why not use a immutable vector, when memtable is full ,it will be insert into immutable vector; therefore ,the main thread can not be blocked;

i know there is a background thread to dump imm, it schedule the task, so i think why not use this thread to solve the immutable vector?maybe set more background thread? just like main thread produce immutables and the backgraound threads to dump them.

thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.