Replies: 1 comment 1 reply
-
|
bson 库写的比较早,早于 lua 支持原生 int64 ,所以舍弃了一些精度来适应 32bit 。 的确可以保留 64bit 精度,但我担心修改会有潜在的兼容性问题。 另外,如果是时间戳,bson 有定义时间戳类型。对时间戳类型 bson 库是保留全部精度的,我觉得不应该用 date 类型替代 timestamp 类型。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
mongo原生的date类型是支持毫秒级的,但我看bson中关于date类型的实现代码好像是不支持的,是否可以考虑支持下?在某些情况下还是有价值的。
bson中实现:
mongo中测试确认支持毫秒级:
Beta Was this translation helpful? Give feedback.
All reactions