[SERVER-8562] indexOnly should be false when sorting by a non indexed field Created: 13/Feb/13 Updated: 07/Mar/14 Resolved: 13/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.4.0-rc0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sridhar Nanjundeswaran | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
2.4.0-rc0 on OS X |
||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: |
var coll = db.getCollection("covered_negative_1") ) ) ) ) ).sort( {c:1}).hint( {d:1}).explain() |
||||||||
| Participants: | |||||||||
| Description |
|
When sorting by a field that is not part of the index, indexOnly should be false irrespective of the fields projected. |
| Comments |
| Comment by Aaron Staple [ 13/Feb/13 ] |
|
I think this is covered by the "scan and order sort applied" item in |