-
Notifications
You must be signed in to change notification settings - Fork 87
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
kn/results skip performance #1391
Conversation
… called for a given index)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also implement efficient skip for list as well?
Given that Iterable<E> skip(int count) => SubListIterable<E>(this, count, null);
|
ab1c41d
to
77012b5
Compare
This makes
skip
a simple integer addition, and defer handle construction as long as possible.This came about due to https://www.mongodb.com/community/forums/t/do-relationship-properties-get-populated-during-tolist/242260.
skip
is useful if you wan't to do pagination for various reasons, even though realm doesn't require it. In this case to support an existing data access layer previously build on another DB.Fixes: #1392