[SERVER-24025] Don't load .skip()ed documents when possible. Created: 03/May/16 Updated: 06/Dec/22 Resolved: 06/May/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Rod Adams | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
A posited theory is that if a query is returning in index order, (either explicitly by sort clause, or implicitly by lack of one), and if the query criteria fields are contained within the index (possibly by having no criteria), then we should be able to honor an arbitrarily large .skip() request without loading any of the intervening documents, just by scanning the index. Thoughts? |