I want to create a table using a Timestamp as range key, for sorting my data by date easily.
The epoch format seems the most easy to use -> for example 1437136300
In javascript i'm using new Date().getTime()
to get the UTC time.
My question is what's the better data type to save the date in DynamoDB, String or Number?
Found some references of AWS here and here saying it's possible to use Number as type for timestamp because it's the type of all numbers, long
included.
Will there be any difference when i query by date? I'm looking for the best practice.