zhangbaodan opened a new issue, #720:
URL: https://github.com/apache/lucenenet/issues/720

   I plan to use lucene to build a PC file search system, In order to search 
the newly generated files in time, I have to do the following operations:
   
   1. Every few seconds, the system obtains file changes from the USN log and 
uses IndexWriter to Commit the new file index to the local disk.
   
   2. On each search, IndexReader will be recreated from disk to ensure that 
IndexReader gets the latest data.
   
   But this has two bad effects:
   
   1. Commit operations are too frequent, resulting in high CPU consumption.
   
   2. During each search, it takes about 80ms to recreate IndexReader from the 
disk index, resulting in high search latency.
   
   What can I do to reduce the CPU consumption by reducing the frequency of 
Commit operations while keeping the search real-time?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to