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

IndexWriter with no threads #1487

Closed
fulmicoton opened this issue Aug 27, 2022 · 0 comments
Closed

IndexWriter with no threads #1487

fulmicoton opened this issue Aug 27, 2022 · 0 comments

Comments

@fulmicoton
Copy link
Collaborator

The IndexWriter currently starts several threads, each one holding SegmentIndexWriter, each consuming the same mpmc channel.

This contraption exists even in single thread, and is somewhat justified by the possibility that a segment "spills".
If the segment writer exceeds its memory budget, it is serialized to disk and a new segment writer is created.
Without threading, the add_document call that will trigger this operation will block for a long time.

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

No branches or pull requests

1 participant