lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan ter Horst" <terho...@gmail.com>
Subject Facets queries are not caching
Date Tue, 06 Nov 2007 19:08:18 GMT
I can't figure out why running the same query twice in a row using facets
takes the same amount of time:

INFO: /select
> facet=true&fl=pk_i,score&facet.mincount=1&q=(510)+AND+type_t:Candidate&facet.limit=-1&facet.field=company_facet&qt=standard&wt=ruby
> 0 6670
> Nov 6, 2007 12:54:59 PM org.apache.solr.core.SolrCore execute
> INFO: /select
> facet=true&fl=pk_i,score&facet.mincount=1&q=(510)+AND+type_t:Candidate&facet.limit=-1&facet.field=company_facet&qt=standard&wt=ruby
> 0 6659
>

If I disable facets, the query is instantaneous. Based on my simplistic
reading of SimpleFacets.java, the calls to numDocs should be placing things
in the filter cache, no?

More generally, does anyone have any pointers about further avenues for
optimization? Our index is fairly large (~6 million records) and I'm trying
to gin up ways to make the facets portion run faster. Most of the
suggestions I have seen revolve around computing the intersections of cached
BitSets. But, again, it seems like functionality is now in Solr core since
all calls from SimpleFacets to SolrIndexSearch are cache-aware.

One nice feature of our database is that it changes very infrequently, so
there is a lot of opportunity for precomputing, I just need to think of the
best way to do it. If anyone has any experience here I'd also be grateful.
Thanks for any help!

-- 
Jonathan
terhorst@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message