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

db.collection.ensureIndex() should be deprecated

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.16, mongodb-2.6, mongodb-3.0
    • Affects Version/s: mongodb-2.6, mongodb-3.0
    • Component/s: manual
    • Labels:
      None

      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.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 17 weeks, 2 days ago