gpt4 book ai didi

cassandra - 为什么 timeuuid 不会有任何冲突?

转载 作者:行者123 更新时间:2023-12-01 09:49:45 25 4
gpt4 key购买 nike

我在看 the Datastax CQL reference :

Collisions that would potentially overwrite data that was not intended to be overwritten cannot occur.



有人可以向我解释为什么永远不会发生碰撞吗?是不可能还是“非常”不可能?

最佳答案

Cassandra 的 timeuuid 是 Version 1 UUID这是基于生成 UUID 的机器的时间和 MAC 地址。

使用的时间精确到 100ns,因此发生碰撞的可能性非常小(一纳秒是百万分之一毫秒)。

关于cassandra - 为什么 timeuuid 不会有任何冲突?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40411451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com