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

Don't close/reopen IndexWriter when changing RAM buffer size #6856

Closed
wants to merge 1 commit into from

Conversation

mikemccand
Copy link
Contributor

Today we close/reopen IW when we change the RAM buffer but that's
costly because it means the next NRT reader is a full reopen. The RAM
buffer size setting is a live one in IndexWriter, even if there are no
buffered docs in RAM when you call it.

Separately it would be nice if Lucene let you manage a "reader pool"
that could outlive individual IW instances ...

Today we close/reopen IW when we change the RAM buffer but that's
costly because it means the next NRT reader is a full reopen.  The RAM
buffer size setting is a live one in IndexWriter, even if there are no
buffered docs in RAM when you call it.

Separately it would be nice if Lucene let you manage a "reader pool"
that could outlive individual IW instances ...
@s1monw
Copy link
Contributor

s1monw commented Jul 15, 2014

LGTM

@s1monw s1monw removed the review label Jul 15, 2014
@mikemccand mikemccand added v1.3.0 and removed v1.4.0 labels Jul 15, 2014
mikemccand added a commit that referenced this pull request Jul 15, 2014
Today we close/reopen IW when we change the RAM buffer but that's
costly because it means the next NRT reader is a full reopen.  The RAM
buffer size setting is a live one in IndexWriter, even if there are no
buffered docs in RAM when you call it.

Separately it would be nice if Lucene let you manage a "reader pool"
that could outlive individual IW instances ...

Closes #6856
@clintongormley clintongormley changed the title Core: don't close/reopen IndexWriter when changing RAM buffer size Internal: Don't close/reopen IndexWriter when changing RAM buffer size Jul 16, 2014
@clintongormley clintongormley added the :Core/Infra/Core Core issues without another label label Jun 7, 2015
@clintongormley clintongormley changed the title Internal: Don't close/reopen IndexWriter when changing RAM buffer size Don't close/reopen IndexWriter when changing RAM buffer size Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants