Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

(BETA) using block options cache instead of general cache for rocksdb #1613

Merged
merged 2 commits into from
Jul 14, 2016

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Jul 13, 2016

No description provided.

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Jul 13, 2016
@@ -169,12 +169,6 @@ impl Database {

opts.set_max_background_flushes(DB_BACKGROUND_FLUSHES);
opts.set_max_background_compactions(DB_BACKGROUND_COMPACTIONS);
if let Some(cache_size) = config.cache_size {
// half goes to read cache
opts.set_block_cache_size_mb(cache_size as u64 / 2);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this lead to inadequate ram consumption

@rphmeier rphmeier added the A8-backport 🕸 Pull request is already reviewed well in another branch. label Jul 13, 2016
@arkpar arkpar merged commit 69847e3 into beta Jul 14, 2016
@NikVolf NikVolf deleted the beta-cache-prefix branch July 18, 2016 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review. A8-backport 🕸 Pull request is already reviewed well in another branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants