Skip to content

//tempest2/app.cash.tempest2/LogicalDb/batchWrite

batchWrite

[jvm]\

@CheckReturnValue

abstract fun batchWrite(writeSet: BatchWriteSet, maxPageSize: Int = MAX_BATCH_WRITE): BatchWriteResult

Saves and deletes the objects given using one or more calls to the DynamoDbClient.batchWriteItem API. Callers should always check the returned BatchWriteResult because this method returns normally even if some writes were not performed.

This method does not support versioning annotations and behaves like DynamoDbClient.putItem.

A single call to BatchWriteItem can write up to 16 MB of data, which can comprise as many as 25 put or delete requests. Individual items to be written can be as large as 400 KB.

In order to improve performance with these large-scale operations, this does not behave in the same way as individual PutItem and DeleteItem calls would. For example, you cannot specify conditions on individual put and delete requests, and BatchWriteItem does not return deleted items in the response.

[jvm]\ open fun batchWrite(writeSet: BatchWriteSet): BatchWriteResult