[GODRIVER-124] Support bulk inserting documents over 16 MB in total size with InsertMany Created: 10/Nov/17  Updated: 28/Oct/23  Resolved: 24/May/18

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: None
Fix Version/s: 0.0.6

Type: New Feature Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Fixed Votes: 0
Labels: FY2019Q2, Stitch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Epic Link: GODRIVER Alpha UX

 Description   

Currently, InsertMany operations will error if the documents to be inserted don't fit in a single BSON document. We should decide a proper way to handle this situation (e.g. with batching) and implement it.



 Comments   
Comment by Githook User [ 24/May/18 ]

Author:

{'username': 'tychoish', 'name': 'tycho garen', 'email': 'garen@tychoish.com'}

Message: GODRIVER-124: batch splitting implementation

Change-Id: I4371a92c1cd74769dd25ffac272da5ca018afa1d
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/e1311241de2ab777d6bed0c1e579ad882d7038a1

Comment by Kristofer Brandow (Inactive) [ 15/May/18 ]

I think it'll need to be in the dispatch and command package. I think it makes sense to have the insert command be able to split itself, creating a number of correctly sized insert commands. Then in dispatch we can call this splitting functionality and do a round trip with it. This will make it easier to add retryable writes in the future.

Comment by Sam Kleinman (Inactive) [ 15/May/18 ]

kris.brandow, do you think this makes sense to put in:

  • the client,
  • dispatch
  • the commands package?

I can see reasons to locate this functionality in any of these places, but I'm not sure what you had in mind.

Generated at Thu Feb 08 08:33:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.