lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject how to "load" mmap directory into memory?
Date Wed, 03 Dec 2014 02:46:11 GMT
I am using mmap fs directory in lucene. My index is small (about 3GB
in disk) and I have plenty of memory available. The problem is that
when the term is first queried, it's slow. How can I "load" all
directory into memory? One solution is using many query to "warm" it
up. But I can't query all terms and maybe some terms are still not in
memory. Any other methods?
If I write a script(or java program) to read the index file, will it
load all into memory if I have enough memory?

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message