[CSHARP-867] Change default values of MaxDocumentSize Created: 04/Dec/13  Updated: 02/Apr/15  Resolved: 06/Dec/13

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.8.3
Fix Version/s: 1.9

Type: Task Priority: Major - P3
Reporter: Sridhar Nanjundeswaran Assignee: Sridhar Nanjundeswaran
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The current default MaxDocumentSize is is 4MB in BsonDefaults. MongoDefaults.MaxDefaultSize is just an alias for BsonDefaults.MaxDocumentSize. This is to separate the 2. The MongoDefault should be 16MB (same as current server MaxDocumentSize) and should be Int.MaxValue for BsonDefaults.



 Comments   
Comment by Githook User [ 06/Dec/13 ]

Author:

{u'username': u'sridharn', u'name': u'Sridhar Nanjundeswaran', u'email': u'sridhar@10gen.com'}

Message: CSHARP-867 - Change MaxDocumentSize defaults. Also decouple MongoDefaults.MaxDocumentSize and BsonDefaults.MaxDocumentSize
BsonDefaults.MaxDocumentSize = Int.MaxValue
MongoDefaults.MaxDocumentSize = 4MiB
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5b43a95f96c3651764ef2b04edd431be9e33d4ba

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