I come from a strict SQL background.
Now migrating to DynamoDB, I have a table full of items which I would like to sort by dates.
Here is how I do it:
I set up a secondary index Category-Date-Index. Category is Hash and Date is Range. All items I am sorting will have the same value for category.
The problem I now have is that many items have the same dates. This secondary index automatically drops items with the same Category-Date and keeps only one. This is not the behavior I desire.
What would be the right way to do this?
I would also appreciate pointers to a good reading on how to structure tables and indices in DynamoDB when considering these use cases.