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

Index management helpers should support maxTimeMS

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6
    • Affects Version/s: None
    • Component/s: Command Ops
    • None

      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.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: