mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 21:55:50 +00:00
In Origin, partitions in range query results are ordered using decorated_key ordering. This allows the use of token() function for incremental iterating over results, as mentioned here: http://www.datastax.com/dev/blog/client-side-improvements-in-cassandra-2-0 We may also need this to implement paging. The old code didn't preserve ordering, because it didn't merge-sort data coming from different shards. The fix relies on query_mutations_locally(), which already preserves the ordering. We're going to use mutation queries for range queries anyway.