On Wed, 2014-05-07 at 15:46 +0200, Cheng wrote: > I have an index of multiple gigabytes which serves 5-10 threads and needs > refreshing very often. I wonder if RAMDirectory is the good candidate for > this purpose. If not, what kind of directory is better?
RAMDirectory will probably give you poor performance: http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html Stick to MMapDirectory: As you are considering using a RAMDirectory, your index must be smaller than the amount of free RAM, which means that everything will be fully cached and fast. - Toke Eskildsen, State and University Library, Denmark --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org