incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten von Eicken <...@rightscale.com>
Subject how-to scan a table using CQL3
Date Fri, 10 May 2013 16:11:40 GMT
What is the proper way to scan a table in CQL3 when using the random
partitioner? Specifically, what is the proper way to *start* the scan?
E.g., is it something like:

select rowkey from my_table limit N;
while some_row_is_returned do
  select rowkey from my_table where token(rowkey) >
token(last_rowkey_returned) limit N;

or is it:

select rowkey from my_table where token(rowkey) >= 0 limit N;
while some_row_is_returned do
  select rowkey from my_table where token(rowkey) >
token(last_rowkey_returned) limit N;

Is there a docs page I overlooked that spells this out?
Thanks!
Thorsten


Mime
View raw message