I have a table that uses a hash key and sort (range) key. My range key is a uuid. I have a case where I have an arbitrary set of range keys that I want to query the database for using DynamoDBMapper. They are in no way sequential, and unfortunately for my purpose there is no way that they could be sequential, so I cannot query a range of keys (i.e. key is between a and b). Is there any way to have a query condition that searches for the range key that is in a set of potential values? Essentially an sql WHERE condition like: rangeKey IN (val1, val2, ...);
According to the docs for DynamoDBQueryExpression this doesn't appear to be possible using setKeyConditionExpression or setRangeKeyConditions. Is there any efficient way of doing this? Or is my best bet iterating through my set of potential values and using the load method to individually retrieve them from the database?