You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/03/27 12:41:23 UTC

[Lucene-java Wiki] Update of "ImproveSearchingSpeed" by MikeMcCandless

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.

The following page has been changed by MikeMcCandless:
http://wiki.apache.org/lucene-java/ImproveSearchingSpeed

The comment on the change is:
Add suggestion to use readOnly IndexReader & NIOFSDirectory

------------------------------------------------------------------------------
   * '''Get faster hardware, especially a faster IO system.'''
  
   Flash-based Solid State Drives works very well for Lucene searches. As seek-times for SSD's are about 100 times faster than traditional platter-based harddrives, the usual penalty for seeking is virtually eliminated. This means that SSD-equipped machines need less RAM for file caching and that searchers require less warm-up time before they respond quickly.
+ 
+  * '''Open the IndexReader with readOnly=true.'''
+ 
+  This makes a big difference when multiple threads are sharing the same reader, as it removes certain sources of thread contention.
+ 
+  * '''On non-Windows platform, using NIOFSDirectory instead of FSDirectory.'''
+ 
+  This also removes sources of contention when accessing the underlying files. Unfortunately, due to a longstanding bug on Windows in Sun's JRE (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6265734 -- feel particularly free to go vote for it), NIOFSDirectory gets poor performance on Windows.
  
   * '''Add RAM to your hardware and/or increase the heap size for the JVM.'''