Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query Multiple Partition Keys At Same Time DynamoDB - Node

I have an array of Job ID's.

[ '01', '02', '03', '04' ]

Currently I am looping through the array and executing a Query for each item in the array to get the job details.

Is there a way to use a single query to get all the jobs whose Partition Key is in the array ?

like image 843
pizzarob Avatar asked Mar 19 '17 22:03

pizzarob


1 Answers

You can use Batch Get Item API to get multiple items from DynamoDB table based on key attributes (I.e. partition key and sort key if available).

like image 130
notionquest Avatar answered Sep 28 '22 23:09

notionquest