You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2022/02/02 20:16:20 UTC

[GitHub] [lucenenet] rclabo commented on issue #614: deep paging is slow

rclabo commented on issue #614:
URL: https://github.com/apache/lucenenet/issues/614#issuecomment-1028320228


   >yes, I know there is SearchAfter, but I don't have the last document from previous page
   
   If `SearchAfter` is a possible solution for you then I'd be really tempted to find a way to hang onto the last document and cache it in memory in a way that is related to a session or cookie. Then you would have it for the next query.  Although if the search engine is asking for several "pages of results" in parallel then that won't necessarily work. But there may be ways to beat that.  One way is to only give the option to "get more results" rather then provide links to lots of future pages of results.  But if you are set on doing the later then you could maybe pre-cache the last result of each page that a link is shown for.  Just thinking out loud here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org