incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Pagination over row Keys in Cassandra using Kundera/CQL queries
Date Thu, 10 Jan 2013 00:28:23 GMT
Try this http://wiki.apache.org/cassandra/FAQ#iter_world

Take a look at the code examples it points to. 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 10/01/2013, at 11:55 AM, Snehal Nagmote <nagmote.snehal@gmail.com> wrote:

> Hello All,
> 
> I am using Kundera 2.0.7 and Cassandra 1.0.8. I need to implement batching/ pagination
over row keys.  
> 
> for instance, Scan columnfamily , get 100 records in batch everytime , till all keys
are exhausted.
> 
> I am using random partitioner for keyspace. I explored  limit option in cql and ,setMaxresults()
, but It doesnt give me ability to do range scan over row keys . 
> 
> One option I can think of is Storing those row keys in separate column family as columns
and do range queries on column.
> 
> Is there any best practice to achieve this ?
> 
> Any help ?
> 
> 
> Thanks,
> Snehal
> 


Mime
View raw message