I have a table named products. It’s schema is
- CustomerNumber (HASH Key of type String)
- ProductID (Range Key of type String)
I want to query similar to
SELECT * FROM products WHERE CustomerNumber IN ("cust123","cust234").
How to achieve it?
Few observations -
DynamoDBQueryExpression would query only on index/hashKey not not on list of hashKeys like in example above.
Also DynamoDBQueryExpression doesnt support IN , OR operator.
Also BatchLoad uses only Primary Key (in my case customerNumber and productID)record to return batch of records.
Also ,I dont want to scan the table and apply filter on it.
Also creating GSI on customerNumber and then querying it didn't work