lawrencegripper/ion

Add timetamps to all document types

jjcollinge opened this issue · 1 comments

Currently, we do not add any timestamps to the documents stored in the document store.

Might be worth going down the unix approach for cosmos as it avoids the need to enable range queries on strings

Alternatively, you can store DateTimes as Unix timestamps, that is, as a number representing the number of elapsed seconds since January 1, 1970. Azure Cosmos DB's internal Timestamp (_ts) property follows this approach. You can use the UnixDateTimeConverter class to serialize DateTimes as numbers.

https://docs.microsoft.com/en-us/azure/cosmos-db/working-with-dates#indexing-datetimes-for-range-queries