https://slatedb.io logo
https://github.com/slatedb/slatedb/issues/77 ,i vi...
# general
m
https://github.com/slatedb/slatedb/issues/77 ,i view the code find only maybe_apply_backpressure() in db.rs use the size of memtable,so the size() is not means the size of memtable either memtable after encode to SST?
r
yeah I think right now it reflects the size of the memtable in-memory, which is useful to preserve because we use it as factor when applying backpressure - specifically when applying backpressure to ensure we don't consume too much memory from memtables. We also use it to estimate the resulting sst size when deciding when to flush. That's where I was thinking we could do better.
m
I've submitted a PR. Could you help review it?
And i find it will be more and more difficulty to change the way of SST size estimation If we use fixed configuration values in the test
so i think refactor test is top priority.we must change option of test to dynamically determined by code
need you suggestion