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

Use createIndexes command when available (MongoDB 2.6)

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Modify collection.Collection.create_index - implementation should look something like this:

      try:
          self.__database.command('createIndexes', ...)
      except OperationFailure, exc:
          if exc.code in (59, Null):
              <fallback to existing code for backward compatibility>
          else:
              raise
      

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: