Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4540

db.collection.ensureIndex() should be deprecated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: mongodb-2.6, mongodb-3.0
    • Fix Version/s: v1.3.16, mongodb-2.6, mongodb-3.0
    • Component/s: manual
    • Labels:
      None
    • # Replies:
      4
    • Last comment by Customer:
      true
    • Actual Time:
      4

      Description

      Official drivers have deprecated ensureIndex methods in favour of createIndex (eg JAVA-1097, CSHARP-736).

      For consistency of API we should note ensureIndex() as deprecated in the mongo shell as well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sam.kleinman Sam Kleinman (Inactive)
              Reporter:
              stennie Stennie Steneker
              Participants:
              Last commenter:
              Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                5 years, 37 weeks, 6 days ago
                Date of 1st Reply: