[JAVA-718] DBCollection offers bulk insert but not bulk update or save Created: 18/Dec/12 Updated: 24/Jan/14 Resolved: 24/Jan/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.9.3 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | eHarmony Matching | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
For the sake of convenience and consistency, it would be nice if the DBCollection API provided uniform sets of overloads for insert, update, and save. In particular, there are insert overloads that can insert many documents at once – presumably more efficiently than an app-level loop – but similar overloads are not available for update or save. |
| Comments |
| Comment by Jeffrey Yemin [ 24/Jan/14 ] |
|
Duplicates |
| Comment by Jeffrey Yemin [ 20/Dec/12 ] |
|
The reason the API looks like this is because the server supports bulk insert at the wire protocol, but not bulk update. The server is likely going to add support for bulk operations in the wire protocol, so any API change we do will piggyback off that. |