[DOCS-2605] Clarify remove() method Behavior Created: 28/Jan/14 Updated: 08/Dec/16 Resolved: 28/Jan/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | v1.3.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | sprint-slipstream | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: http://docs.mongodb.org/manual/reference/method/db.collection.remove/ |
||
| Participants: | |
| Days since reply: | 10 years, 3 weeks, 1 day ago |
| Description |
|
why does "remove" delete all matching records by default? dont you think the default option should be to delete only first matching record and if required user will pass "false" for second parameter to remove all records. im new to mongo and i made a mistake of passing bad query to "remove" and it resulted in deletion of > 10 millions documents |
| Comments |
| Comment by Githook User [ 28/Jan/14 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Githook User [ 28/Jan/14 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |