Re: Why SSTable is sorted by tokens instead of row keys?

2011-11-04 Thread Gary Shi
but since only one node can serve a single row, won't this lead to hot spot problems? 在 2011-11-4 晚上10:28,"Sylvain Lebresne" 写道: > On Fri, Nov 4, 2011 at 1:49 PM, Gary Shi wrote: > > I want to save time series event logs into Cassandra, and I need to load > > them b

Why SSTable is sorted by tokens instead of row keys?

2011-11-04 Thread Gary Shi
ad of keys: if rows in SSTable are sorted by keys, it should be quite easy to return rows by key range -- token should be used to determine which node contains the data. For key range requests, Cassandra could ask every node for that range of rows, merge them and return to the caller. -- regards, Gary Shi