Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify range key condition in BatchGetItem query in DynamoDB?

Method BatchGetItemRequest(Map requestItems) does not allow to add any Keys or Range conditions. Without range key, BatchGetItemRequest fails. How do I specify range key condition with comparison operators?

like image 397
vinayag Avatar asked Jan 03 '14 22:01

vinayag


1 Answers

Get requests (GetItem/BatchGetItem) doesn't support any conditions whatsoever.

When you ask to get an item, you're required to know exactly what you want (supply it's full primary key)

If you wish to have conditions (search) - you should check Scan (full table) or Query (supply hash, search for ranges)

like image 130
Chen Harel Avatar answered Oct 10 '22 06:10

Chen Harel