-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
Comments
fulmicoton
added a commit
that referenced
this issue
Aug 31, 2022
fulmicoton
added a commit
that referenced
this issue
Aug 31, 2022
fulmicoton
added a commit
that referenced
this issue
Aug 31, 2022
fulmicoton
added a commit
that referenced
this issue
Aug 31, 2022
fulmicoton
added a commit
that referenced
this issue
Aug 31, 2022
fulmicoton
added a commit
that referenced
this issue
Aug 31, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
IndexWriter
currently starts several threads, each one holdingSegmentIndexWriter
, 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.The text was updated successfully, but these errors were encountered: