diff --git a/lib/mergeset/table.go b/lib/mergeset/table.go index b4084b848..4284bc623 100644 --- a/lib/mergeset/table.go +++ b/lib/mergeset/table.go @@ -369,7 +369,7 @@ func (tb *Table) AddItems(items [][]byte) error { tb.rawItemsBlocks = append(tb.rawItemsBlocks, ib) } } - if len(tb.rawItemsBlocks) >= 1024 { + if len(tb.rawItemsBlocks) >= 512 { blocksToMerge = tb.rawItemsBlocks tb.rawItemsBlocks = nil tb.rawItemsLastFlushTime = fasttime.UnixTimestamp()