lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Memory Usage
Date Mon, 14 Nov 2005 17:19:04 GMT
Marvin Humphrey wrote:
> You *can't* set it on the reader end.  If you could set it, the  reader 
> would get out of sync and break.  The value is set per-segment  at write 
> time, and the reader has to be able to adapt on the fly.

It would actually not be too hard to change things so that there was 
such a parameter that could be set on an IndexReader.  It would 
determine the fraction of entries in the .tii file that are kept in RAM. 
  So if the parameter were, e.g., 10, then only every tenth entry in the 
.tii file would be kept in RAM, equivalent to 10x the indexInterval used.

Doug

---------------------------------------------------------------------
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