Cassandra: Generate a unique ID?

后端 未结 4 1355
难免孤独
难免孤独 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 08:02

    You need to use cassandra function now() to generate timeuuid and use uuid() function to generate uuid type string.

提交回复
热议问题