lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Jelsma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2789) Add showItems to LRUCache, display extra details about cached data for both LRUCache and FastLRUCache
Date Tue, 14 Aug 2012 12:35:38 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434079#comment-13434079
] 

Markus Jelsma commented on SOLR-2789:
-------------------------------------

This issue is not resolved but it's documented as-if it was:
http://wiki.apache.org/solr/SolrCaching#showItems
                
> Add showItems to LRUCache, display extra details about cached data for both LRUCache
and FastLRUCache
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2789
>                 URL: https://issues.apache.org/jira/browse/SOLR-2789
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 3.4
>            Reporter: Eric Pugh
>            Priority: Minor
>         Attachments: cache_details.patch
>
>
> I noticed that the showItems parameter for cache configuration applies to FastLRUCache
but not LRUCache.  So I added it.  I also noticed that the key data about an item that is
QueryResult cache hit wasn't very useful, but was for document and filter cache, so added
specific support for QueryResultKey.
> This patch should probably be merged with the work in SOLR-1893, which is a proposed
refactor.  I'm happy to merge these two into a single patch if someone things that is a good
idea.
> The output for a queryresult cache hit now looks like:
> <str name="cumulative_hitratio">0.66</str>
> <long name="cumulative_inserts">43</long>
> <long name="cumulative_evictions">0</long>
> <str name="item_QueryResultKey:-1058088364(query=text:efficient, filters=[manu:"apple
computer inc"], sort=null)">org.apache.solr.search.DocSlice@1e66a917</str>
> <str name="item_QueryResultKey:-425423228(query=text:based, filters=[inStock:T], sort=null)">org.apache.solr.search.DocSlice@7bfcb845</str>
> I've also updated the example solrconfig.xml in order to better show off the showItems
parameter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message