Re: Resetting a counter in CQL

2014-03-01 Thread Manoj Khangaonkar
, Feb 28, 2014 at 4:32 PM, Clint Kelly clint.ke...@gmail.com wrote: Folks, What is the best known method for resetting a counter in CQL? Is it best to read the counter and then increment it by a negative amount? Or to delete the row and then increment it by zero? These are the two methods I

Re: Resetting a counter in CQL

2014-03-01 Thread Tupshin Harper
, Feb 28, 2014 at 4:32 PM, Clint Kelly clint.ke...@gmail.comwrote: Folks, What is the best known method for resetting a counter in CQL? Is it best to read the counter and then increment it by a negative amount? Or to delete the row and then increment it by zero? These are the two methods I

Re: Resetting a counter in CQL

2014-02-28 Thread Tyler Hobbs
On Fri, Feb 28, 2014 at 6:32 PM, Clint Kelly clint.ke...@gmail.com wrote: What is the best known method for resetting a counter in CQL? Is it best to read the counter and then increment it by a negative amount? Do this. Or to delete the row and then increment it by zero? Don't do

Re: Resetting a counter in CQL

2014-02-28 Thread Clint Kelly
Great, thanks! On Fri, Feb 28, 2014 at 4:38 PM, Tyler Hobbs ty...@datastax.com wrote: On Fri, Feb 28, 2014 at 6:32 PM, Clint Kelly clint.ke...@gmail.comwrote: What is the best known method for resetting a counter in CQL? Is it best to read the counter and then increment it by a negative