[DOCS-2813] Shell Bulk API additions Created: 27/Feb/14 Updated: 01/May/14 Resolved: 01/May/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | v1.3.4, mongodb-2.6 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andreas Nilsson | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa, sprint-rollover | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 9 years, 41 weeks, 6 days ago | ||||||||
| Description |
|
1. There is no discussion of return values from the bulk operations, what to expect and how to interpret them. 2. I would also like some word of warning somewhere in the docs. This is a low confidence API in the sense that there is no real error recovery. If you get one or several write errors during the bulk op there is no way of re-executing the batch and it is fairly difficult to analyze which operations failed and for which reasons. Stated crudely, if you care a lot about data loss you should not use this API. 3. For unordered bulks we should point out that certain operation combinations are illegal, or non-sensical. For instance a
will either be a no-op (add and remove) or potentially fail on the remove. |
| Comments |
| Comment by Githook User [ 01/May/14 ] | |||||||||||||||||||||||||||||||||
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: | |||||||||||||||||||||||||||||||||
| Comment by Andreas Nilsson [ 07/Mar/14 ] | |||||||||||||||||||||||||||||||||
|
Summary as a help for the docs, not sure that we want to document all of but here are all the publicly available parts of bulk_api.js Functions on a bulk operation object
functions on a BulkWriteResults object
properties of a BulkWriteResult and a SingleWriteResult object
functions on a SingleWriteResult object generated from toSingleResult()
ck can you elaborate on the intended usage of SIngleWriteResult. Does is add any value outside what BulkWriteResult already provides? | |||||||||||||||||||||||||||||||||
| Comment by Andreas Nilsson [ 03/Mar/14 ] | |||||||||||||||||||||||||||||||||
|
See |