get_range_slices never does "searching." the performance of those two predicates is equivalent, assuming a row "start key" actually exists.
On Thu, Oct 14, 2010 at 1:09 PM, Narendra Sharma <narendra.sha...@gmail.com> wrote: > Hi, > > I am using Cassandra 0.6.5. Our application uses the get_range_slices to get > rows in the given range. > > Could someone please explain how get_range_slices works internally esp when > a count parameter (value = 1) is also specified in the SlicePredicate? Does > Cassandra first search all in the given range and then return top 1 or it > some how reads only 1 and return them? > What is the performance & I/O impact if we pass "start key" = "end key" in > the SlicePredicate? Will it perform better than passing a range as ["Start > key",""] with count = 1? > > Thanks, > Naren > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com