Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SCAN faster. #11180

Merged
merged 1 commit into from May 15, 2015
Merged

Make SCAN faster. #11180

merged 1 commit into from May 15, 2015

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented May 15, 2015

When scrolling, SCAN previously collected documents until it reached where it
had stopped on the previous iteration. This makes pagination slower and slower
as you request deep pages. With this change, SCAN now directly jumps to the
doc ID where is had previously stopped.

@jpountz jpountz added v2.0.0-beta1 review :Search/Search Search-related issues that do not fall into other categories labels May 15, 2015
* A filtering query that matches all doc IDs that are not deleted and
* greater than or equal to the configured doc ID.
*/
private static class MinDocQuery extends Query {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat!

@martijnvg
Copy link
Member

I like this approach! Left one minor comment, but other than that LGTM.

@jpountz
Copy link
Contributor Author

jpountz commented May 15, 2015

@martijnvg I pushed a new commit.

@martijnvg
Copy link
Member

LGTM

When scrolling, SCAN previously collected documents until it reached where it
had stopped on the previous iteration. This makes pagination slower and slower
as you request deep pages. With this change, SCAN now directly jumps to the
doc ID where is had previously stopped.
jpountz added a commit that referenced this pull request May 15, 2015
@jpountz jpountz merged commit 1a967ce into elastic:master May 15, 2015
@kevinkluge kevinkluge removed the review label May 15, 2015
@clintongormley
Copy link

wow!

@jpountz jpountz deleted the enhancement/faster_scan branch May 19, 2015 08:13
@clintongormley clintongormley changed the title Search: Make SCAN faster. Make SCAN faster. Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants