_ts如何在DocumentDB中更改 [英] How _ts change in DocumentDB
问题描述
我对documentdb中的_ts字段有疑问.如何确定?我的理解是,在添加/更改文档时,它会获得一个新的_ts.两个文档是否有相同的_ts?如果是这样,只有在正确的时间(以毫秒为单位)添加这些文档时,这种情况才会发生.
I have a question regarding the _ts field within the documentdb. How is it determined? My understanding is that when a document is added/altered it gets a new _ts. Are there any chance that two documents have the same _ts? If so, does it happen only if those documents are added at the exact time (in terms of milli second).
推荐答案
_ts
是一个系统属性,表示上一次更新文档(例如创建或替换)的时间.
_ts
is a system property denoting when a document was last updated (e.g. create or replace).
_ts
表示为 POSIX或纪元时间值.换句话说,它是自1970年1月1日00:00:00(UTC)起经过的秒数(不是毫秒).
_ts
is represented as a POSIX or epoch time value. In other words, its the number of seconds (not milliseconds) that have elapsed since 00:00:00 (UTC), 1 January 1970.
如果在同一秒钟内写入/更新了多个文档,则多个文档中可能具有相同的_ts
值.
It is possible to have the same _ts
value across multiple documents when there are multiple documents written/updated during the same second.
这篇关于_ts如何在DocumentDB中更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!