lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Benge <>
Subject FieldCache Question
Date Wed, 04 Feb 2009 16:46:07 GMT

I've been looking into the FieldCache API because of memory problems
we've been seeing in our production environment.

We use various different sorts so over time the cache builds up and
servers stop responding.

I decided to apply the patch for JIRA 831:

so that I can switch out the caching to an LRU based cache.

One thing I noticed in the code is that there is an array cache built
per IndexReader.  I'm wondering what the consequences would be if the
arrays were merged for all IndexReaders.  That would result in single
cached array for Strings, Floats, Ints, etc.

It looks like the arrays are used by the various comparators during
the sort but wasn't exactly sure so thought I'd ask what would happen
if I combined the arrays.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message