[DRIVERS-1888] Split legacy batch inserts into many messages Created: 19/Sep/12  Updated: 23/May/22  Resolved: 23/May/22

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Barrie Segal Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 3.0, batch, insert, network
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on JAVA-803 Document insert must call getLastErro... Closed
depends on PYTHON-414 Split batch inserts into maxMessageSi... Closed
Related
related to CSHARP-693 InsertBatch must call GLE after all s... Closed
related to DRIVERS-1 Respect isMaster.maxMessageSizeBytes Closed
related to RUBY-533 Split batch inserts into many messages Closed
Driver Compliance:
Key Status/Resolution FixVersion
PHP-705 Done 1.5.0, 1.5.0alpha1
JAVA-803 Done 3.1.0
PYTHON-414 Done 2.6

 Description   

Split batch inserts into multiple messages and if safe writes stop after first error if not continueOnError or combine errors if so.

  fail on error continueOnError
acknowledged
  • after each batch, send the requested getlasterror. If response is !ok, send no more batches and report an error
  • after each batch, send the requested getlasterror. Save the last !ok response.
  • after the last batch, report the last !ok response
unacknowledged
  • after each batch but the last, send {getlasterror : 1}

    . If response is !ok, send no more batches and return (no error reported)

  • after the last batch, send no getlasterror command
  • after each batch, send no getlasterror command


 Comments   
Comment by Jeffrey Yemin [ 13/Aug/13 ]

I'd like to suggest that if a driver hasn't done this already, it's not worth implementing the "unacknowledged" part of this, as unacknowledged writes are

  1. no longer the default
  2. being phased out with the new write commands
Generated at Thu Feb 08 08:24:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.