Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1728

What is the proper way to create a capped collection with "max" and "size"?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.7.2
    • Component/s: Command Ops
    • None
    • Environment:

      // code placeholder
      

       

      collection_parameters = { "capped" : True, "size" : "8990654", "max" : "312" } # Aiming for 312 documents
      recordsprices_collection = smlpricesdb.create_collection("prices", **collection_parameters )
      

       

       

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            blynker Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: