Add timetamps to all document types
jjcollinge opened this issue · 1 comments
jjcollinge commented
Currently, we do not add any timestamps to the documents stored in the document store.
lawrencegripper commented
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.