Hello!

I need to perform an experiment of loading the entire index in RAM and seeing 
how the search performance changes.
My index has TermVectors with payload and position info, StoredFields, and 
DocValues. It takes ~30GB on disk (the server has 48).

_indexDirectoryReader = DirectoryReader.open(RAMDirectory.open(new 
File(_indexDirectory)));

Is the line above the only thing I have to do to complete my goal?

And also:
- will all the data be loaded in the RAM right after opening, or during the 
reading stage?
- will the index data be stored in RAM as it is on disk, or will it be 
uncompressed first?

-- 
Best Regards,
Igor

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

Reply via email to