You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2010/04/28 21:33:53 UTC

[Solr Wiki] Update of "SolrCaching" by HossMan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrCaching" page has been changed by HossMan.
The comment on this change is: mentioned autowarmCount as a percentage.
http://wiki.apache.org/solr/SolrCaching?action=diff&rev1=18&rev2=19

--------------------------------------------------

  
  When a new searcher is opened, its caches may be prepopulated or "autowarmed" with cached object from caches in the old searcher. autowarmCount is the number of cached items that will be regenerated in the new searcher. You will proably want to base the autowarmCount setting on how long it takes to autowarm. You must consider the trade-off — time-to-autowarm versus how warm (i.e., autowarmCount) you want the cache to be. The autowarm parameter is set for the caches in solrconfig.xml.
  
- <!> [[Solr1.5]] autowarmCount can now be specified as a percentage (ie: "90%") which will be evaluated relative the number of items in the existing cache.  This can be an advantageous setting in an instance of Solr where you don't expect any search traffic (ie a master), but you want some caches so that if it does take on traffic it won't be too overloaded.  Once the traffic dies down, subsequent commits will gradually decrease the number of items being warmed. 
- 
  == minSize (optional) ==
  Only applicable for `FastLRUCache` . After the cache reaches its size, the cache tries to bring it down to the `minSize`. The default value is `0.9 * size` . 
  
@@ -64, +62 @@

  
  Finally, the filter cache may be used for sorting if the <useFilterForSortedQuery/> config option is set to true in solfconfig.xml.
  
- If you use faceting with the fieldCache method (see SolrFacetingOverview), it is recommended that you set the filterCache size to be greater than the number of unique values in all of your faceted fields.
+ If you use faceting with the enum method (see SolrFacetingOverview), it is recommended that you set the filterCache size to be greater than the number of unique values in all of your faceted fields.
  {{{
      <!-- Internal cache used by SolrIndexSearcher for filters (DocSets),
           unordered sets of *all* documents that match a query.
@@ -201, +199 @@

  }}}
  
  == The hashDocSet Max Size ==
+ <!> This is not relevant to [[Solr1.4]] and later, which as a more efficient, general purpose small set implementation that currently has no external configuration.
  
  The hashDocSet is an optimization that enables an int hash representation for filters (docSets) when the number of items in the set is less than maxSize.  For smaller sets, this representation is more memory efficient, more efficient to iterate, and faster to take intersections. 
  {{{