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

db.collection.createIndex() should not be deprecated

    XMLWordPrintable

    Details

    • # Replies:
      6
    • Last comment by Customer:
      true
    • Actual Time:
      4

      Description

      Official drivers have deprecated ensureIndex methods in favour of createIndex (eg JAVA-1097, CSHARP-736) however the shell API notes createIndex() as deprecated since MongoDB 1.8: http://docs.mongodb.org/v2.6/reference/method/db.collection.createIndex/.

      This contradiction is confusing.

      For consistency with the driver API, createIndex() should not be marked as deprecated.

        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:
              4 Start watching this issue

                Dates

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