[JAVA-1344] Allow count to work with query hints Created: 04/Aug/14  Updated: 27/May/22  Resolved: 01/Sep/14

Status: Closed
Project: Java Driver
Component/s: Query Operations
Affects Version/s: None
Fix Version/s: 2.13.0, 3.0.0

Type: Improvement Priority: Major - P3
Reporter: Barrie Segal Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-2677 Allow count to work with query hints Closed
Related
Server Compat: 2.5

 Description   

MongoDB 2.6 added support for hinting for the count command. Currently the Java driver does not pass the hint specified on DBCursor to that command. It should start doing so.



 Comments   
Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Port DBCollection changes to allow hint to work with count

JAVA-1344
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d641ca1ddfeb4c25471899e6d6c4fd3ec3fe1d95

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Allow count to work with query hints

JAVA-1344
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/f7f1b3cfc796aa22213fdd88d9ad5c14abed8161

Comment by Jeffrey Yemin [ 29/Jan/15 ]

2.13.0 has been released. Closing issue.

Comment by Githook User [ 01/Sep/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Port DBCollection changes to allow hint to work with count

JAVA-1344
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/d641ca1ddfeb4c25471899e6d6c4fd3ec3fe1d95

Comment by Githook User [ 01/Sep/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Allow count to work with query hints

JAVA-1344
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/f7f1b3cfc796aa22213fdd88d9ad5c14abed8161

Comment by Githook User [ 01/Sep/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Allow count to work with query hints

JAVA-1344
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/2ff4039540f89f31b164ce70f1bbf03c2fcd1cc3

Generated at Thu Feb 08 08:54:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.