Right, so if you are on 1.3 or early 1.4 dev, with so many uniques, you should be using the FieldCache method of faceting. The RAM depends on the number of documents and number of uniques terms mostly.

With 1.4 you may be using an UninvertedField though (are your facet fields multivalued or tokenized?), and I know much less about that.

I'd try a cache size of 10,000 and see how it goes.

- Mark

Manepalli, Kalyan wrote:
Got that, if its number of cache entries, definitely its very low. I have 
around 10,000 unique items to facet on. Does the RAM size depend on Document 
size.

Thanks,
Kalyan Manepalli
-----Original Message-----
From: Mark Miller [mailto:markrmil...@gmail.com]
Sent: Wednesday, June 17, 2009 7:13 PM
To: solr-user@lucene.apache.org
Subject: Re: FilterCache issue

Its been a while since I've thought about this sort of thing, but it
looks like your cache is way too small and things get evicted before
being used. How many uniques are you faceting on? 512 is the number of
cache entries, not the size in kb/mb.

Try raising it - perhaps a lot ;) But consider that you have to have the
RAM to accommodate as well ...

What version of Solr are you using?

--
- Mark

http://www.lucidimagination.com



Manepalli, Kalyan wrote:
Hi,
            I am seeing an issue with the filtercache setting on my solr app 
which is causing slower faceting.

Here is the configuration.
<filterCache class="solr.LRUCache" size="512" initialSize="512" 
autowarmCount="256"/>

Statistics:
description:  LRU Cache(maxSize=512, initialSize=512, autowarmCount=256, 
regenerator=org.apache.solr.search.solrindexsearche...@8d41f2)
stats: lookups : 979692
hits : 6904
hitratio : 0.00
inserts : 973531
evictions : 972978
size : 512
warmupTime : 1479
cumulative_lookups : 61660491
cumulative_hits : 516057
cumulative_hitratio : 0.00
cumulative_inserts : 61170111
cumulative_evictions : 61153787

As we can see the cache hit ratio is almost zero. How do I improve the filter 
cache.
Also wanted to know what does the size mean. Is it number of documents or the 
memory size (kb/mb)

Any suggestions in this regard will be very helpful.

Thanks,
Kalyan Manepalli









--
- Mark

http://www.lucidimagination.com



Reply via email to