Mutable
should provide self metrics & decouple with Trigger
#227
Labels
M - Medium
Adding a new feature, refactoring a module, performance optimization.
refactor
No more features, just refactoring
In the current,
Mutable
memtable is declared as:trigger is initialized in
DB
and pass intoMutable
byMutable::new
, it returns a boolean in each appending to report whether memtable should be froze or not, and this boolean bubbles again up to the top-level (DB
orTransaction
) . The triggering path is really long and not efficient.Mutable
should give a method to report its metrics,Triggerer
is able to observe this metrics and decide the freezing timing, it is a possible efficient way to make the freezing trigger clear.The text was updated successfully, but these errors were encountered: