[CXX-176] Implement limit and batchSize for Cursor Created: 14/Apr/14  Updated: 03/Jul/14  Resolved: 22/May/14

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: None
Fix Version/s: legacy-0.9.0

Type: Improvement Priority: Critical - P2
Reporter: Tyler Brock Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently the DBClientInterface::findN signature takes nToReturn and there is no limit or batchSize method on the returned Cursor.

Ideally the Cursor interface should work like the one provided by every other driver.



 Comments   
Comment by Mira Carey [ 22/May/14 ]

merged

Comment by Githook User [ 22/May/14 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'hanumantmk@gmail.com'}

Message: CXX-176 implement nToReturn

Implemented nToReturn with actual limit semantics.
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/2e86826648ffe1f56219cebe9bd27adb712ff568

Comment by Mira Carey [ 22/May/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/80

Generated at Wed Feb 07 21:58:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.