[JAVA-2120] InsertMany should not stop on error Created: 24/Feb/16 Updated: 11/Sep/19 Resolved: 24/Feb/16 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Async |
| Affects Version/s: | 3.2.2 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Ben [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Following scenario: would it be better to track that error and proceed inserting all other entries? |
| Comments |
| Comment by Jeffrey Yemin [ 24/Feb/16 ] |
|
No problem. |
| Comment by Ben [X] [ 24/Feb/16 ] |
|
oh thank you! |
| Comment by Jeffrey Yemin [ 24/Feb/16 ] |
|
Please have a look at the com.mongodb.client.model.InsertManyOptions#ordered property. If you set it to false, it will work as you described. |