You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason in our setup it was observed that this Solr query takes 10 seconds to complete. It is likely that this query is waiting for commit to complete and/or new searcher to finish opening.
(Details about observed poor Solr performance and reasons are given in issue #719 ).
After consulting Solr IRC it was established that facet.method=enum resolves this aspect of our performance problems. With this parameter yz_solr:partition_list/1 always completes in under 10ms (1000 times speed up!).
For now we have modified solr_config.xml and set the default facet.method to enum. However as far as I understand this is not a reliable solution (as solr_config.xml is overwritten in some circumstances(?)).
I think it is worthwhile to do one of the following:
a) Add a way to add facet.method=enum to the Solr partition list facet query. It seems to perform much faster then the default facet method.
b) Turn Solr docValues on for the _yz_pn field. This will should make faceting on this field really fast in all cases. This could be added to the default schema.
The text was updated successfully, but these errors were encountered:
Basho-JIRA
changed the title
Performance of yz_solr:partition_list/1
Performance of yz_solr:partition_list/1 [JIRA: RIAK-3221]
Jan 28, 2017
I was able to reproduce the speedup of the faceted query for yz_solr:partition_list/1. Switching to facet.method=enum yields consistently faster results.
Additional optimisations include not asking for actual query results (which may generate substantial amounts of unused data internally for big documents) and not returning query headers with the result. Every little helps, as they say.
yz_solr:partition_list/1 function performs Solr lookup using facet search.
yokozuna/src/yz_solr.erl
Line 280 in 0268231
For some reason in our setup it was observed that this Solr query takes 10 seconds to complete. It is likely that this query is waiting for commit to complete and/or new searcher to finish opening.
(Details about observed poor Solr performance and reasons are given in issue #719 ).
After consulting Solr IRC it was established that facet.method=enum resolves this aspect of our performance problems. With this parameter yz_solr:partition_list/1 always completes in under 10ms (1000 times speed up!).
For now we have modified solr_config.xml and set the default facet.method to enum. However as far as I understand this is not a reliable solution (as solr_config.xml is overwritten in some circumstances(?)).
I think it is worthwhile to do one of the following:
a) Add a way to add facet.method=enum to the Solr partition list facet query. It seems to perform much faster then the default facet method.
b) Turn Solr docValues on for the _yz_pn field. This will should make faceting on this field really fast in all cases. This could be added to the default schema.
The text was updated successfully, but these errors were encountered: