Querying DynamoDB by date

前端 未结 7 1338
予麋鹿
予麋鹿 2020-11-28 03:07

I\'m coming from a relational database background and trying to work with amazon\'s DynamoDB

I have a table with a hash key \"DataID\" and a range \"CreatedAt\" and

7条回答
  •  难免孤独
    2020-11-28 03:34

    You could make the Hash key something along the lines of a 'product category' id, then the range key as a combination of a timestamp with a unique id appended on the end. That way you know the hash key and can still query the date with greater than.

提交回复
热议问题