You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/12/29 21:58:30 UTC

[GitHub] [lucenenet] rclabo commented on issue #591: Minimize the HDD load

rclabo commented on issue #591:
URL: https://github.com/apache/lucenenet/issues/591#issuecomment-1002790795


   I agree that the #1 reason that Shad listed is almost certainly the issue.  If you are opening and closing the reader frequently it can be a huge performance hit as all caches will need to be rebuild including any fieldCaches used for sorting or other LuceneNet features.  In fact, general guidance is to not only use a single `IndexReader` or single `IndexWriter` ie `IndexWriter.GetReader()` **but also** to perform a few typical queries on that object at system startup to "warm up the system" and give it a chance to build those caches.  So, if instead the system closes and reopens the reader each search, Then the system is basically paying that "warm up" penalty for every search, over and over again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org