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

Cao Manh Dat updated SOLR-8344:
-------------------------------
    Attachment: SOLR-8344.patch

Here are my patch for this ticket. The work here is simple. I created a new 
class called {{RetrieveFieldsOptimizer}}, It takes input from docFetcher, 
returnFields and docList, then return storedFields and docValuesFields need to 
retrieve.

The optimization here is very simple ( we can do more optimization in the 
future if we want ). If the numDocs is small and returned fields that all have 
docValues, we will always use docValues.
Therefore in first pass ( with id and score fields only ) we will use docValues 
to retrieve id field.

Here are some benchmark result ( 3 shards, 1 replica each, SSD drive, 18000 
docs )
||Query||AVG QTime with optimizer||AVG QTime without optimizer||
|q=*:*&fl=TITLE_str,id,REVISION_TEXT_str&start=10000|49|267||
|q=*:*&fl=TITLE_str,id,REVISION_TEXT_str&start=10|3|3||

> Decide default when requested fields are both column and row stored.
> --------------------------------------------------------------------
>
>                 Key: SOLR-8344
>                 URL: https://issues.apache.org/jira/browse/SOLR-8344
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Ishan Chattopadhyaya
>         Attachments: SOLR-8344.patch
>
>
> This issue was discussed in the comments at SOLR-8220. Splitting it out to a 
> separate issue so that we can have a focused discussion on whether/how to do 
> this.
> If a given set of requested fields are all stored and have docValues (column 
> stored), we can retrieve the values from either place.  What should the 
> default be?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to