incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Verde <miguelitov...@gmail.com>
Subject Re: How to generate 'unique' identifiers for use in Cassandra
Date Mon, 26 Apr 2010 20:39:46 GMT
http://wiki.apache.org/cassandra/UUID if you don't need transactional
ordering, ZooKeeper or something comparable if you do.


2010/4/26 Roland Hänel <roland@haenel.me>

> Typically, in the SQL world we use things like AUTO_INCREMENT columns that
> let us create a unique key automatically if a row is inserted into a table.
>
> What do you guys usually do to create identifiers for use in Cassandra?
>
> Do we only rely on "currentTimeMills() + random()" to create something that
> is 'unique enough' (but theoretically not fail-safe)? Or are some people
> here using systems like ZooKeeper for this purpose?
>
> -Roland
>
>

Mime
View raw message