Cassandra: Generate a unique ID?

后端 未结 4 1371
难免孤独
难免孤独 2020-12-08 07:25

I\'m working on a distributed data base. I\'m trying to generate a unique ID that will serve as a column family primary key in cassandra.

I read some articl

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 07:56

    As said by Richard you can use TimeUUID, and generating TimeUUID value is not a big deal. Just follow cassandra FAQ timeuuid.

提交回复
热议问题