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"?

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Community Answered
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Component/s: Command Operations
    • Security Level: Public
    • Labels:
      None
    • Environment:

      Description

      // code placeholder
      

       

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

       

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: