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

Metadata and subkey column family share a singleblock cache #365

Merged
merged 2 commits into from
Sep 25, 2021
Merged

Metadata and subkey column family share a singleblock cache #365

merged 2 commits into from
Sep 25, 2021

Conversation

caipengbo
Copy link
Contributor

By default, metadata Column Family and subkey Column Family have their own block cache, so block cache must be allocated in advance for the two CFs.
It is not possible to predict the usage of the two CFs and allocate the optimal capacity for the two block caches, so we can provide a configuration item that specifies whether the two CFs should share a single block cache (see rocksdb Wiki).

Regarding this configuration item, although it is not an item for Rocksdb Option, it is related to Rocksdb, so I gave it a name prefixed with rocksdb..

@git-hulk
Copy link
Member

wow, really a good feature.

src/storage.cc Outdated Show resolved Hide resolved
src/storage.cc Outdated Show resolved Hide resolved
src/storage.cc Outdated Show resolved Hide resolved
Copy link
Member

@git-hulk git-hulk left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants