Commit b66088cf authored by acud's avatar acud Committed by GitHub

localstore: increase gc batch size by order of magnitude (#1424)

parent e5f141cf
......@@ -36,8 +36,8 @@ var (
// garbage collection runs.
gcTargetRatio = 0.9
// gcBatchSize limits the number of chunks in a single
// badger transaction on garbage collection.
gcBatchSize uint64 = 200
// transaction on garbage collection.
gcBatchSize uint64 = 2000
)
// collectGarbageWorker is a long running function that waits for
......
......@@ -119,7 +119,7 @@ type DB struct {
collectGarbageWorkerDone chan struct{}
// wait for all subscriptions to finish before closing
// underlaying BadgerDB to prevent possible panics from
// underlaying leveldb to prevent possible panics from
// iterators
subscritionsWG sync.WaitGroup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment