A token-range read extracts data by querying contiguous intervals of the token ring instead of scanning an entire table through its partition key. This supports database-scale exports while limiting each query to a manageable range. section 12.0 section 12.1.1
Query one token interval
Use the TOKEN function to bound a CQL query: SELECT * FROM articles WHERE TOKEN(id) >= ... AND TOKEN(id) < ...; Cluster metadata can then identify the hosts owning each range. section 12.1.1 section 12.1.1
Tune the extraction around the workload:
- Choose how much token range to query at once. section 12.1.1
- Control concurrency and back off or retry queries that time out, including queries encountering very large partitions. section 12.1.1
- Consider a separate datacenter when extraction traffic would burden the primary datacenter. section 12.1.1
