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 a Compact() function to gtreap store. #1317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tanzhang0504
Copy link

This is a fix for memory leak from in-mem index (#374).

I made a fix in the underlying store - #1314. but seems like Compact() function is recommended by the owner - blevesearch/blevex#30.

@tanzhang0504
Copy link
Author

I did not add batch_size as done by compact() in other two stores, because the in-memory operation is usually much faster, and the caller can adjust the frequency of calling compact() to limit the latency per compact(). PLMK your thoughts.

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.

1 participant