Skip to content

Support for BatchGetItem #122

@yyamanoi1222

Description

@yyamanoi1222

Are there any plans to implement BatchGetItem in this gem?

I saw this issue #12
We have a requirement and BatchGetItem may be better than TransactGetItems. (e.g., retrieve large number of items , no need to consider transaction conflict errors, etc.)

If you don't plan to implement it and are be open the idea, may I add the feature myself?
The API interface will be something like transact_find

result = Aws::Record::Batch.find(
  batch_items: [
    TableOne.bfind_opts(key: { uuid: "uuid1234" }),
    TableTwo.tfind_opts(key: { hk: "hk1", rk: "rk1"}), 
    TableTwo.tfind_opts(key: { hk: "hk2", rk: "rk2"})  
  ]
)

result.responses # { TableOne.table_name => [TableOne], TableTwo.table_name => [TableTwo, TableTwo] }

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions