[SERVER-14799] Count with hint doesn't work when hint is a document Created: 06/Aug/14 Updated: 11/Mar/15 Resolved: 11/Sep/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.6.3, 2.7.4 |
| Fix Version/s: | 2.6.6, 2.7.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | David Storch |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Backport Completed: | |||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
When using hint() with count() it only works with the string name of the index and not a document representing the index key. |
| Comments |
| Comment by Githook User [ 21/Nov/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |
| Comment by Githook User [ 20/Nov/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |
| Comment by Githook User [ 11/Sep/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |
| Comment by Tyler Brock [ 09/Sep/14 ] |
|
Cool, thanks David. Can we schedule this one for 2.7.x or does it still need triage? |
| Comment by Tyler Brock [ 09/Sep/14 ] |
|
Not accepting a document index description makes it very hard to work with this feature in the C++ driver. All of our hinting is done through a Query class which wants to take a BSONObj or something that looks like json (so that we can validate a bit). Being required to use an index name requires that the function just take a string instead of a JSON-ish. |
| Comment by Githook User [ 12/Aug/14 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Update driver-count-hint.rst Clarification re |