[CSHARP-1832] Support NoPadding create collection option Created: 20/Nov/16  Updated: 08/Dec/16  Resolved: 08/Dec/16

Status: Closed
Project: C# Driver
Component/s: Operations
Affects Version/s: 2.3
Fix Version/s: 2.4.1

Type: New Feature Priority: Major - P3
Reporter: Aristarkh Zagorodnikov Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change

 Description   

The CreateCollectionOptions does not currently support the "noPadding" flag, which is important, since "usePowerOf2Sizes" flag is deprecated/ignored since MongoDB 3.0.
I believe it should be implemented, and probably should produce some kind of warning or even an exception if the underlying database instance is version 3.0+ (throwing exception is of course may be going too far, so this is only a suggestion).
Without this flag, it appears that there is no API-supported way to disable padding in mmap-based storage engines when using newer versions of MongoDB. Issuing the "collMod"/"createCollection" commands manually of course would work, but it looks more like a hack.



 Comments   
Comment by Githook User [ 08/Dec/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1832: Support NoPadding create collection option.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/3e855051269ecc0db07f61932654ecfe15a14a8f

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