Re: keyrange for get_range_slices

2010-06-10 Thread Shuai Yuan
Hi, Since you're iterating the whole set with several records a time, your code should know when it's first time. Why just simply if(!_first_time){ _iter++; //to ignore the first record? }else{ _first_time=false; } Kevin Yuan, Supertool Corp. www.yuan-shuai.info On 2010?06?10? 22:0

RE: keyrange for get_range_slices

2010-06-10 Thread Dop Sun
Thanks for your quick and detailed explain on the key scan. This is really helpful! Dop From: Philip Stanhope [mailto:pstanh...@wimba.com] Sent: Thursday, June 10, 2010 10:40 PM To: user@cassandra.apache.org Subject: Re: keyrange for get_range_slices No ... and I personally don't

Re: keyrange for get_range_slices

2010-06-10 Thread Philip Stanhope
No ... and I personally don't have a problem with this if you think about what is actually going on under the covers. Note, however, that this is an expensive operation and as a result if there are parallel updates to the indexes while you are performing a full keyscan (rowscan) you will potent