[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: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Days since reply: | 9 years, 7 weeks, 2 days ago | ||||||||||||||||
| Description |
|
Official drivers have deprecated ensureIndex methods in favour of createIndex (eg 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: | |||||
| Comment by Githook User [ 29/Dec/14 ] | |||||
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: | |||||
| Comment by Githook User [ 29/Dec/14 ] | |||||
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: | |||||
| Comment by Githook User [ 29/Dec/14 ] | |||||
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: | |||||
| Comment by Daniel Pasette (Inactive) [ 26/Dec/14 ] | |||||
|
Not actually sure why createIndex was marked as deprecated (no reference to a ticket):
ensureIndex just calls createIndex under the hood anyways – there's no functional difference that I can see. |