[CDRIVER-464] Changing batch_size on a cursor Created: 20/Nov/14  Updated: 06/Jan/15  Resolved: 06/Jan/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.0

Type: New Feature Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to PHPC-62 Implement Cursor class Closed

 Description   

Most (all?) drivers support a way to modify the batch_size of a cursor after its creation.

I propose to add two new functions:

uint32_t mongoc_cursor_get_batch_size (const mongoc_cursor_t *cursor)

and

void mongoc_cursor_set_batch_size (mongoc_cursor_t *cursor, uint32_t batch_size)



 Comments   
Comment by Githook User [ 01/Dec/14 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@mongodb.com'}

Message: CDRIVER-464: Add function to retrieve and set batch_size

The batch size needs to be tweakable between getmores

Added:
uint32_t mongoc_cursor_get_batch_size (const mongoc_cursor_t *cursor)
void mongoc_cursor_set_batch_size (mongoc_cursor_t *cursor, uint32_t batch_size)

Closes #120
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/0807e049f04ac662c2df63571f81fbc6f0a890cf

Comment by Hannes Magnusson [ 20/Nov/14 ]

https://github.com/mongodb/mongo-c-driver/pull/120

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