mongo-java-driver icon indicating copy to clipboard operation
mongo-java-driver copied to clipboard

Create and document Java sync improved bulk write API

Open stIncMale opened this issue 1 year ago • 0 comments

Documentation:

  • https://www.mongodb.com/docs/upcoming/reference/command/bulkWrite
  • https://github.com/mongodb/specifications/blob/master/source/crud/bulk-write.md

API changes (only new program elements were introduced):

  1. com.mongodb.client.model.bulk 1.1. ClientWriteModel - note how unlike WriteModel, it does not have a type parameter specifying the document type. Initially I implemented that (48b9614340953609cdc82231524b446fa6f49f4e), but then I removed it (af854edb75e3787e3e10d4fda800ca07e6d97a08) because I don't think it is needed in this case. 1.2. ClientDeleteOptions, ClientReplaceOptions, ClientUpdateOptions 1.3. ClientBulkWriteOptions
  2. com.mongodb.client.result.bulk 2.2. ClientDeleteResult 2.3. ClientInsertOneResult 2.4. ClientUpdateResult 2.5. ClientBulkWriteResult
  3. com.mongodb.ClientBulkWriteException
  4. com.mongodb.client.MongoCluster.bulkWrite (4 overloads)

BULK-TODO code comments:

The BULK-TODO code comments will be turned into comments (where possible) in the PR to merge JAVA-4586_bulk-write into master, which will be created once this PR is approved and merged into JAVA-4586_bulk-write.

JAVA-5527

stIncMale avatar Jul 23 '24 21:07 stIncMale