Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
b66088cf
Unverified
Commit
b66088cf
authored
Mar 12, 2021
by
acud
Committed by
GitHub
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localstore: increase gc batch size by order of magnitude (#1424)
parent
e5f141cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gc.go
pkg/localstore/gc.go
+2
-2
localstore.go
pkg/localstore/localstore.go
+1
-1
No files found.
pkg/localstore/gc.go
View file @
b66088cf
...
...
@@ -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
=
200
0
)
// collectGarbageWorker is a long running function that waits for
...
...
pkg/localstore/localstore.go
View file @
b66088cf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment