[ 
https://issues.apache.org/jira/browse/SOLR-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867688#comment-13867688
 ] 

Manuel Lenormand commented on SOLR-5478:
----------------------------------------

new patch:

I redesigned it without making any changes to indexSearcher.

Implemented by:
1. A userCache ("uniqueKeyCache") that stores the the whole index's DocValues 
(by a SlowWrapper AtomicReader). Its' get method returns the unique key for 
every docId.
2. An event listener ("cacheWarmerListener") that renews this cache as the 
[docId,uniqueKey] mapping might change every commit.
3. A change in BinaryResponseWriter that accepts a query param 
(accelerateSearch) to request the uniqueKey from the cache instead of fetching 
it from the stored value.

> Speed-up distributed search with high rows param or deep paging by 
> transforming docId's to uniqueKey via memory docValues
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-5478
>                 URL: https://issues.apache.org/jira/browse/SOLR-5478
>             Project: Solr
>          Issue Type: Improvement
>          Components: Response Writers
>    Affects Versions: 4.5
>            Reporter: Manuel Lenormand
>             Fix For: 4.7
>
>         Attachments: SOLR-5478.patch, SOLR-5478.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to