Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: revise to open-write-close mode #52

Merged
merged 6 commits into from
Sep 6, 2023
Merged

storage: revise to open-write-close mode #52

merged 6 commits into from
Sep 6, 2023

Conversation

1023280072
Copy link
Collaborator

No description provided.

fanyang89 and others added 6 commits August 23, 2023 22:37
1. Use debug.SetMemoryLimit to hint the Go GC
2. Tweak BadgerDB config parameters to reduce memory usage
In our cases, will not write to BadgerDB value log since the value is
smaller than the value threshold.

Since there is no data in the value log, it's useless to trigger ValueGC
This reverts commit acdd7d4.
1. Batch submit with interval flush
2. Inserted records count is maintained by types.
3. On-demand reclaim on insertion
4. Close and open db when sys mem is larger than expected
@fanyang89 fanyang89 self-assigned this Sep 6, 2023
@fanyang89 fanyang89 added the enhancement New feature or request label Sep 6, 2023
@fanyang89 fanyang89 merged commit 55d4162 into main Sep 6, 2023
1 check failed
@fanyang89 fanyang89 deleted the rxh branch September 6, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants