mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 15:21:02 +00:00
added flush
This commit is contained in:
parent
a518186a5f
commit
daf42d5694
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ func (self *KVStorage) StoreBlock(bitmap_id int64, db string, slice int, chunk_k
|
|||
self.cc.Set(key, value)
|
||||
self.evic_count += 1
|
||||
if self.evic_count > 10000 {
|
||||
self.db.Flush()
|
||||
self.cc.EvictSomeItems()
|
||||
self.evic_count = 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue