[ 
https://issues.apache.org/jira/browse/SOLR-7753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler updated SOLR-7753:
--------------------------------
    Fix Version/s:     (was: 5.4)
                   5.5

> Parse localParams and query object once and re-use when hanging queries under 
> pivots
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-7753
>                 URL: https://issues.apache.org/jira/browse/SOLR-7753
>             Project: Solr
>          Issue Type: Improvement
>          Components: faceting
>            Reporter: Shalin Shekhar Mangar
>              Labels: difficulty-easy, impact-medium
>             Fix For: 5.5, Trunk
>
>
> When hanging facet.query under pivots, the query (and localparams) is parsed 
> for every pivot value. We can avoid it by parsing and caching the query 
> object just once during FacetComponent#prepare.
> As noted by Hoss in SOLR-4212:
> {quote}
> It's not just an issue of localparams, but also the parsing & construction of 
> the Query object – doing that once per request (just like the way you've 
> changed the range faceting to do all the bucket calculation once) could give 
> us some serious performance savings when facet.query params are hung of of 
> many and/or large pivot trees. (should just mean a pretty trivial new 
> subclass of FacetBase that also has a public Query getQuery() accessor)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to