[DOCS-4539] db.collection.createIndex() should not be deprecated Created: 16/Dec/14  Updated: 16/Mar/15  Resolved: 29/Dec/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.16, mongodb-2.6, mongodb-3.0

Type: Bug Priority: Major - P3
Reporter: Stennie Steneker (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-4540 db.collection.ensureIndex() should be... Closed
is related to JAVA-1097 deprecate ensureIndex() methods Closed
is related to CSHARP-736 Don't cache EnsureIndex and deprecate... Closed
Participants:
Days since reply: 9 years, 7 weeks, 2 days ago

 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.



 Comments   
Comment by Sam Kleinman (Inactive) [ 29/Dec/14 ]

will do most of the work associated with change in the ensureIndex ticket.

Comment by Githook User [ 29/Dec/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-4539: remove deprecation for createIndex
Branch: v2.2
https://github.com/mongodb/docs/commit/669b2387556f09ae94d5c67c389a9ce3a8e5ed5b

Comment by Githook User [ 29/Dec/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-4539: remove deprecation for createIndex
Branch: v2.4
https://github.com/mongodb/docs/commit/a46d851e3a2a74b5eaccb2d2a54afeb5d8daf224

Comment by Githook User [ 29/Dec/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-4539: remove deprecation for createIndex
Branch: master
https://github.com/mongodb/docs/commit/e843b614c9c71ce1d09b829df074c2de64e5bd60

Comment by Githook User [ 29/Dec/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-4539: remove deprecation for createIndex
Branch: v2.6
https://github.com/mongodb/docs/commit/f18672d373a5cf272d8455c11683df355fc5c488

Comment by Daniel Pasette (Inactive) [ 26/Dec/14 ]

Not actually sure why createIndex was marked as deprecated (no reference to a ticket):

commit 757d4672c3bfa789e1f78a5e02a14a63b1de5d46
Author: Ed Costello <epc@10gen.com>
Date:   Fri Nov 30 16:22:20 2012 -0500
 
    Updates to db.collection.createIndex

ensureIndex just calls createIndex under the hood anyways – there's no functional difference that I can see.

Generated at Thu Feb 08 07:48:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.