cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: TimeUUID
Date Tue, 28 Feb 2012 08:23:49 GMT
not a great deal of difference, personally I would stick with seconds since epoch (it is probably
slightly faster).

Cheers
 
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 28/02/2012, at 7:24 PM, Tamar Fraenkel wrote:

> Hi!
> I have a column family where I use rows as "time buckets". 
> What I do is take epoc time in seconds, and round it to 1 hour (taking the result of
time_since_epoc_second divided by 3600).
> My key validation type is LongType.
> I wonder whether it is better to use TimeUUID or even readable string representation
for time?
> Thanks,
> 
> -- 
> Tamar Fraenkel 
> Senior Software Engineer, TOK Media 
> 
> <tokLogo.png>
> 
> tamar@tok-media.com
> Tel:   +972 2 6409736 
> Mob:  +972 54 8356490 
> Fax:   +972 2 5612956 
> 
> 
> 


Mime
View raw message