Index files map keys (not tokens) to offsets in the data file.
A range scan uses the index file to seek to the start position in the data file
and then does a partial scan of the data file.
Cheers
-
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com
On
inline resp.
On Mon, Jul 9, 2012 at 10:18 AM, prasenjit mukherjee
prasen@gmail.comwrote:
Thanks Aaron for your response. Some follow up
questions/assumptions/clarifications :
1. With RandomPartitioner, on a given node, are the keys sorted by
their hash_values or original/unhashed keys
Thanks for the response. Further questions inline..
On Mon, Jul 9, 2012 at 11:50 AM, samal samalgo...@gmail.com wrote:
1. With RandomPartitioner, on a given node, are the keys sorted by
their hash_values or original/unhashed keys ?
hash value,
1. Based on the second answer in
for background
http://wiki.apache.org/cassandra/FAQ#range_rp
It maps the start key to a token, and then scans X rows from their on CL number
of nodes. Rows are stored in token order.
Cheers
-
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com
On
Thanks Aaron for your response. Some follow up
questions/assumptions/clarifications :
1. With RandomPartitioner, on a given node, are the keys sorted by
their hash_values or original/unhashed keys ?
2. With RandomPartitioner, on a given node, are the columns (for a
given key) always sorted by
Wondering how a rangequery request is handled if RP is used. Will the
receiving node do a fan-out to all the nodes in the ring or it will
just execute the rangequery on its own local partition ?
--
Sent from my mobile device