If I want to create a DynamoDB table with ItemId and BatchId and I want to be able to query by ItemId and BatchId do I have to create two tables:
Table1: Hash-ItemId Range-BatchId
Table2: Hash-BatchId Range-ItemId
Or is there a way to use secondary indexes to avoid duplication?



avoid duplication? Does anItemIdcorrespond to a bunch ofBatchIds?