In AWS documentation for dynamodb they describe the best practices for storing timeseries data in dynamodb (https://docs.aws.amazon.com/en_pv/amazondynamodb/latest/developerguide/bp-time-series.html).
What is the best practice for accessing this data when you want following access pattern:
- Get rows between two data ranges that are not a hole unit like an hour or a week. Eg. from 2019-11-03 22:01:50 to 2019-11-04 04:10:35. As you can not query hashkey, and inserting a dummy hashkey sounds like a bad idea. If i use 2019-11-03 as primary key then i have to query first 2019-11-03 and then 2019-11-04 which also sounds like a bad solution.