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

Index management helpers should support maxTimeMS

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6
    • Component/s: Command Operations
    • Labels:
      None

      Description

      MongoDB supports maxTimeMS in the createIndexes and dropIndexes commands. PyMongo doesn't currently support it. Support is complicated in the create_index helper since **kwargs is already used to pass arbitrary index options, rather than command options. Adding support to create_indexes is straightforward since the method takes instances of IndexModel as input, allowing us to add **kwargs for arbitrary command options. drop_index and drop_indexes are equally straightforward.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: