Skip to content

Add a Compact() function to gtreap store.#1317

Open
tanzhang0504 wants to merge 1 commit intoblevesearch:masterfrom
tanzhang0504:compact
Open

Add a Compact() function to gtreap store.#1317
tanzhang0504 wants to merge 1 commit intoblevesearch:masterfrom
tanzhang0504:compact

Conversation

@tanzhang0504
Copy link
Copy Markdown

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
Copy Markdown
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