-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.7.2
-
Component/s: Command Ops
-
None
-
Environment:I finally managed to get capped collections working but the max parameter is not been accepted.
With the code below, but without "max" parameter, I can get the 312 documents I want. But as the document size varies over time I really need to use the "max" parameter rather than the "size".
I have tried with and without inverted commas for 312. When I set "max" I get no documents at all. Does anyone know the correct syntax?I finally managed to get capped collections working but the max parameter is not been accepted. With the code below, but without "max" parameter, I can get the 312 documents I want. But as the document size varies over time I really need to use the "max" parameter rather than the "size". I have tried with and without inverted commas for 312. When I set "max" I get no documents at all. Does anyone know the correct syntax?
// code placeholder
collection_parameters = { "capped" : True, "size" : "8990654", "max" : "312" } # Aiming for 312 documents recordsprices_collection = smlpricesdb.create_collection("prices", **collection_parameters )
- related to
-
SERVER-39231 Create command should reject incorrect types for known options
- Closed