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

add cache_index_and_filter_blocks #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

lhztop
Copy link

@lhztop lhztop commented Jun 16, 2017

add cache_index_and_filter_blocks options, which is import when bloom filter

@twmht
Copy link
Owner

twmht commented Jun 16, 2017

@lhztop

thanks for the PR.

it's great.

Can you add some test cases as well?

@lhztop
Copy link
Author

lhztop commented Jun 19, 2017

Ok. now it's in test_options.py

@gcp
Copy link

gcp commented Feb 15, 2018

Any reason this hasn't been pulled in?

Looks like it also makes it possible to expose bottommost_compression which would be nice to be able to configure (FB recommends LZ4 top, ZSTD bottom).

@twmht
Copy link
Owner

twmht commented Feb 15, 2018

@gcp

yup. some test cases failed, I am going to verify.

@oersted
Copy link

oersted commented Jun 26, 2019

Any news on this? According to facebook/rocksdb#3216 this might be a solution to a memory leak issue I have.

@twmht
Copy link
Owner

twmht commented Jun 27, 2019

@oersted

yup. I am currently migrating all of the existing features to pybind11 branch.

@twmht
Copy link
Owner

twmht commented Jun 27, 2019

@oersted

so if we set cache_index_and_filter_blocks to true, then it can solve the memory leak problem?

@oersted
Copy link

oersted commented Jun 27, 2019

@twmht Actually it looks like it was an unrelated garbage collection issue, I was creating too many new small objects in my merge operation that weren't getting collected in time. Thanks anyways.

@iFA88
Copy link

iFA88 commented Jun 27, 2019

Take some attention to https://github.com/facebook/rocksdb/blob/6.3.fb/include/rocksdb/table.h#L61-L71

I have several databases with different sizes: 30gb 250gb 400gb 1.2tb. I doesn't have any memory issue.

@twmht
Copy link
Owner

twmht commented Jun 27, 2019

@oersted

I will add merge operations to pybind11 branch in a few days. after that You can try the branch to test if it has memory leak.

jackrobison pushed a commit to jackrobison/python-rocksdb that referenced this pull request Nov 3, 2021
alexreg pushed a commit to alexreg/python-rocksdb that referenced this pull request Mar 7, 2022
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.

5 participants