Skip to content

Instantly share code, notes, and snippets.

@gabhi
Created March 13, 2015 07:49
Show Gist options
  • Save gabhi/297d18eae3d1b6efe415 to your computer and use it in GitHub Desktop.
Save gabhi/297d18eae3d1b6efe415 to your computer and use it in GitHub Desktop.
Cassandra pagination
//first get first 10 records
select id from user_info limit 10;
//then save id of the 10th item and
select id from buyer_info where token(id) > token(<last_id_of_the_previous_result>) limit 10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment