Use createIndexes command when available (MongoDB 2.6)

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • 2.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Hackett
              Reporter:
              Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: