[CDRIVER-2259] Respect maxWriteBatchSize Created: 29/Aug/17  Updated: 28/Oct/23  Resolved: 31/Aug/17

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

Type: Task Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-1213 Pre-split bulk ops every 1000 documents Closed
is related to SERVER-13061 Raise write batch limit to 100,000 op... Closed
Epic Link: Cdriver MongoDB 3.6 Support

 Description   

The maxWriteBatchSize has been bumped in MongoDB 3.4.

We have a few locations were we don't have plumbs for the mongoc_server_description_t and therefore fallback to a default value "just because it won't change".

Those parts need to be audited and confirmed to work with the new 100.000 limit



 Comments   
Comment by Githook User [ 15/Oct/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2259 use new maxWriteBatchSize in tests
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/35f7b1597adad408081d840b071bac681a4814dc

Comment by Githook User [ 31/Aug/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2259 Respect maxWriteBatchSize

With OP_MSG, this will be optimized differently
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/aadefa3ad15e5b4b704953928a1ab77a2a06b16c

Comment by Hannes Magnusson [ 29/Aug/17 ]

See specifically the SHOULD_APPEND() macro

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