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

Use createIndexes command when available (MongoDB 2.6)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: