Jim Musil created SOLR-7036:
-------------------------------
Summary: Faster method for group.facet
Key: SOLR-7036
URL: https://issues.apache.org/jira/browse/SOLR-7036
Project: Solr
Issue Type: Improvement
Components: faceting
Affects Versions: 4.10.3
Reporter: Jim Musil
Fix For: 4.10.4
This is a patch that speeds up the performance of requests made with
group.facet=true. The original code that collects and counts unique facet
values for each group does not use the same improved field cache methods that
have been added for normal faceting in recent versions.
Specifically, this approach leverages the UninvertedField class which provides
a much faster way to look up docs that contain a term. I've also added a simple
grouping map so that when a term is found for a doc, it can quickly look up the
group to which it belongs.
Group faceting was very slow for our data set and when the number of docs or
terms was high, the latency spiked to multiple second requests. This solution
provides better overall performance -- from an average of 54ms to 32ms. It also
dropped our slowest performing queries way down -- from 6012ms to 991ms.
I also added a few tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]