cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Sanders <jus...@justinjas.com>
Subject Re: Querying by date range when using TimeUUIDType ColumnFamily?
Date Tue, 27 Apr 2010 19:50:37 GMT
You're going to have to build TimeUUIDs based on the date range you are
scanning.  Problem is most UUID libraries build version 1 UUIDs based on the
current time.  I was able to get this working in Python by changing the
library to allow me to pass in a time.  This isn't safe for creating unique
UUIDs but works fine for doing slices.

Justin


On Tue, Apr 27, 2010 at 11:28 AM, Ed Anuff <ed@anuff.com> wrote:

> Assuming a ColumnFamily with a CompareWith of TimeUUIDType, is it possible
> to call get_slice with an arbitrary date range?  How would valid values for
> the start and finish attributes of the slice range be constructed?
>
> Thanks
> Ed
>

Mime
View raw message