mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-19 01:30:41 +00:00
346fc31ac23dfe103b3278b325fd1ca35f9cdefe
We commit close segments when the indexer heap is close to its capacity. (currently we use a limit of 10_000_000). Because we do this check before indexing a document, and before also because serialization starts by closing the postingswriter, and therefore all of the recorders open for the last document, we may still overflow the heap. We don't want to resize the heap because we may have references to objects in the current heap. Because of that, heap are actually chained list. In an ideal settings, the limit should work fine and this overflow behavior should never be activated.
Languages
Rust
100%