This is consistent with my experience. DocValues is faster for the first call 
(compared to UnInvertedField, which is what is used when there are no 
DocValues), but is slower on subsequent calls.

I'm curious as to this as well, since I haven't heard anyone else before you 
also mention this. I thought maybe I was the only one...

-Michael

-----Original Message-----
From: lei [mailto:simpl...@gmail.com] 
Sent: Thursday, March 05, 2015 2:40 PM
To: solr-user@lucene.apache.org
Subject: Re: Performance on faceting using docValues

Here is the specs of some example query faceting on three fields (all string 
type):
first call: 1+ sec (with docValues) vs. 4+ sec (w/o docValues) subsequent 
calls: 30+ ms (with docValues) vs. 100+ ms (w/o docValues) consistently the 
total # of docs returned is around 600,000



On Thu, Mar 5, 2015 at 11:18 AM, lei <simpl...@gmail.com> wrote:

> Hi there,
>
> I'm testing facet performance with vs without docValues in Solr 4.7, 
> and found that on first request, performance with docValues is much 
> faster than non-docValues. However, for subsequent requests (where the 
> queries are cached), the performance is slower for docValues than 
> non-docValues. Is this an expected behavior? Any idea or solution is 
> appreciated. Thanks.
>

Reply via email to