cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tatu Saloranta <tsalora...@gmail.com>
Subject Re: Question about TimeUUIDType
Date Sun, 25 Apr 2010 22:40:04 GMT
On Sat, Apr 24, 2010 at 2:08 AM, Sylvain Lebresne <sylvain@yakaz.com> wrote:
> On Sat, Apr 24, 2010 at 12:53 AM, Jesse McConnell
> <jesse.mcconnell@gmail.com> wrote:
>> try LexicalUUIDType, that will distinguish the secs correctly
>>
>> imo based on the existing impl (last I checked at least) TimeUUIDType
>> was equivalent to LongType
>
> It uses to be true that the TimeUUIDType comparator was only comparing the
> timestamps of the UUIDs. But this was more a bug than anything else
> since it made
> different UUID collide and was fixed for 0.6
> (https://issues.apache.org/jira/browse/CASSANDRA-907).
>
> Now with TimeUUIDType, if two UUID have the same timestamps, they are ordered
> by bytes order.

Naively for the whole UUID? That would not be good, given that
timestamp within UUID is not stored in expected lexical order, but
with sort of little-endian mess (first bytes are least-significant
bytes of timestamp).

-+ Tatu +-

Mime
View raw message