Skip to content

//tempest2/app.cash.tempest2/AsyncLogicalDb/batchLoad

batchLoad

[jvm]\ open suspend fun batchLoad(keys: KeySet, consistentReads: Boolean = false, maxPageSize: Int = MAX_BATCH_READ, returnConsumedCapacity: ReturnConsumedCapacity = ReturnConsumedCapacity.NONE): ItemSet

Retrieves multiple items from multiple tables using their primary keys.

This method performs one or more calls to the DynamoDbClient.batchGetItem API.

A single operation can retrieve up to 16 MB of data, which can contain as many as 100 items. BatchGetItem returns a partial result if the response size limit is exceeded, the table’s provisioned throughput is exceeded, or an internal processing failure occurs. If a partial result is returned, this method backs off and retries the UnprocessedKeys in the next API call.

[jvm]\ open suspend fun batchLoad(keys: Iterable<Any>, consistentReads: Boolean = false, maxPageSize: Int = MAX_BATCH_READ): ItemSet

open suspend fun batchLoad(vararg keys: Any, consistentReads: Boolean = false, maxPageSize: Int = MAX_BATCH_READ): ItemSet