[ https://issues.apache.org/jira/browse/SOLR-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16590613#comment-16590613 ]
ASF subversion and git services commented on SOLR-12572: -------------------------------------------------------- Commit dfd2801cd27ccc1e24179cc0ee5768a22bb2e64c in lucene-solr's branch refs/heads/master from [~varunthacker] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dfd2801 ] SOLR-12572: While exporting documents using the export writer, if a field is specified as a sort parameter and also in the fl (field list) parameter, we save on one doc-value lookup. This can bring performance improvements of 15% and upwards depending on how many fields are in common > Reuse fieldvalues computed while sorting at writing in ExportWriter > ------------------------------------------------------------------- > > Key: SOLR-12572 > URL: https://issues.apache.org/jira/browse/SOLR-12572 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: streaming expressions > Reporter: Amrit Sarkar > Assignee: Varun Thacker > Priority: Minor > Attachments: SOLR-12572.patch, SOLR-12572.patch, SOLR-12572.patch, > SOLR-12572.patch, SOLR-12572.patch, SOLR-12572.patch, SOLR-12572.patch, > SOLR-12572.patch > > > While exporting result through "/export" handler, > {code:java} > http://localhost:8983/solr/core_name/export?q=my-query&sort=severity+desc,timestamp+desc&fl=severity,timestamp,msg > {code} > Doc-values are sought for all the {{sort}} fields defined (in this example > 'severity, 'timestamp'). When we stream out docs we again make doc-value > seeks against the {{fl}} fields ('severity','timestamp','msg') . > In most common use-cases we have {{fl = sort}} fields, or atleast the sort > fields are subset of {{fl}} fields, so if we can *pre-collect* the values > while sorting it, we can reduce the doc-value seeks potentially bringing > *speed improvement*. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org