[DOCS-4540] db.collection.ensureIndex() should be deprecated Created: 17/Dec/14 Updated: 16/Mar/15 Resolved: 06/Jan/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | mongodb-2.6, mongodb-3.0 |
| 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, 6 weeks, 1 day ago | ||||||||||||||||
| Description |
|
Official drivers have deprecated ensureIndex methods in favour of createIndex (eg For consistency of API we should note ensureIndex() as deprecated in the mongo shell as well. |
| Comments |
| Comment by Githook User [ 06/Jan/15 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Githook User [ 06/Jan/15 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Githook User [ 05/Jan/15 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Stennie Steneker (Inactive) [ 27/Dec/14 ] |
|
When connecting to MongoDB 2.6+ (non-legacy write mode) ensureIndex() returns the same results as createIndex(): https://github.com/mongodb/mongo/blob/v2.6/src/mongo/shell/collection.js#L558 |