cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shuai Yuan <>
Subject Re: keyrange for get_range_slices
Date Fri, 11 Jun 2010 05:59:09 GMT

Since you're iterating the whole set with several records a time, your 
code should know when it's first time.

Why just simply

     _iter++; //to ignore the first record?

Kevin Yuan,
Supertool Corp.

On 2010?06?10? 22:03, Dop Sun wrote:
> Hi,
> As documented in the, the key 
> range for get_range_slices are both inclusive.
> As discussed in this thread: 

> there is a case that user want to discover all keys (huge number) in a 
> column family.
> What I think  is doing batchly: using empty string as start and finish 
> first, then using the last key returned as start and query second.
> My question is: using this method, the last key returned for the first 
> query, will be returned again in the second query as the first key. 
> And it's a duplication. Is there any other API to discover keys 
> without duplications in current implementation?
> Thanks,
> Regards,
> Dop

View raw message