lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhoucheng2008" <zhoucheng2...@gmail.com>
Subject RAMDirectory doesn't win over FSDirectory all the time, why?
Date Mon, 06 Jun 2011 13:29:58 GMT
I read the lucene in action book and just tested the
FSversusRAMDirectoryTest.java with the following uncommented:

 

    //    /**

    //    // change to adjust performance of indexing with FSDirectory

        writer.mergeFactor = 100;

        writer.maxMergeDocs = 999999;

        writer.minMergeDocs = 1000;

//    */

 

Here is the output:

RAMDirectory Time: 805 ms

FSDirectory Time : 728 ms


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message