[DOCS-478] The same query show up in both able and unable to use index in Indexing Strategies Created: 03/Sep/12 Updated: 30/Oct/23 Resolved: 28/Sep/12 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | v1.0 |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | trgoofi | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Participants: | |
| Days since reply: | 11 years, 20 weeks, 5 days ago |
| Description |
|
db.collection.find( { b: { $gt:5 }} ).sort( { a:1, b:1 }) show up in both be able to use the index and not be able to sort the results using the index.(example of Sort Using Indexes). |
| Comments |
| Comment by auto [ 28/Sep/12 ] | |||||||||||||||||||||||||||
|
Author: {u'date': u'2012-09-27T19:21:20-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: | |||||||||||||||||||||||||||
| Comment by Gianfranco Palumbo [ 17/Sep/12 ] | |||||||||||||||||||||||||||
|
This query actually uses the index.
So should go in the first part | |||||||||||||||||||||||||||
| Comment by auto [ 11/Sep/12 ] | |||||||||||||||||||||||||||
|
Author: {u'date': u'2012-09-11T12:02:04-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: |