In DynamoDB I configured LSI(Local Secondary Index) using a Partition Key and Range Key.
How can I Query DynamoDB Table with Partition Key value and Range Key value ?
In SQL, I can use the IN operator:
SELECT *
FROM genericTable
WHERE partionKey = "foo"
AND rangeKey IN ("bar1", "bar11", "bar5")
How do I achieve this functionality in DynamoDB ?
As Per Documentation of Amazon query
Query can use KeyConditionExpression to retrieve ... several items that have the same partition key value but different sort key values.
However in the list of valid comparison operators, there is nothing analogous to SQL "IN".
Is there any way to use multiple key condition expressions like below SQL ?
SELECT *
FROM genericTable
WHERE partionKey = "foo"
AND (rangeKey = "bar1"
OR rangeKey = "bar5" ....)