I need to store intervals represented with their start/end times with precision to 10 minutes.
What are the best practices to do so with CosmosDB? I need to be able have queries like
get me all intervals that start at given date
get me all intervals that end at given date
ISO representation doesn’t seem to be too suitable for that. I am not sure unix timestamps are either.
Other options include storing day, month, year, hour, minute as int
s.
Is there some best practice for it?
PS. General case could involve that i want queries like:
give me intervals that start at the same date as interval with id={id}
or
give me all intervals that are longer than interval with id={id}