cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Robson <mar...@gmail.com>
Subject Re: Best Timestamp?
Date Wed, 26 May 2010 22:00:25 GMT
On 26 May 2010 22:56, Miguel Verde <miguelitovert@gmail.com> wrote:

> Right, in C# this would be (not the most efficient way, but you get the
> idea):
> long timestamp = (DateTime.Now.Ticks - new DateTime(1970, 1, 1).Ticks)/10;
>
>
> Yeah, you're fine provided:

a) All your client applications (which perform writes) are consistent and
b) Your infrastructure's clocks are fairly in sync.

The latter point is important to note, as a single app server node which has
a clock which is accidentally far in the future could wreck your database.

Mark

Mime
View raw message