incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Snehal Nagmote <nagmote.sne...@gmail.com>
Subject Re: Pagination over row Keys in Cassandra using Kundera/CQL queries
Date Thu, 10 Jan 2013 18:20:12 GMT
Thank you Aaron , that link helps.

However, In my application ,  I am using jpa(Kundera)  to query cassandra.

Is there a way to achieve this in cql or jpa query language?

Thanks,
Snehal

On 9 January 2013 16:28, aaron morton <aaron@thelastpickle.com> wrote:

> 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