Open ofriedma opened 9 months ago
@ofriedma -
its completely not correct. this was the propose of doing the global switch #296 the prepare switch memtable is done on a memtable factory, and only on a factory that support that - e.g. enable_switchmemtable is true. so it means that if all the cfs use the same factory ,this is on entire db.... currently only hash spdb memtable uses it
Currently for each CF, we reserve a spare memtable waiting to replace the active one, we could reserve it for the entire db so we will be able to save some memory