Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 34290 invoked from network); 13 May 2010 21:24:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 May 2010 21:24:38 -0000 Received: (qmail 61110 invoked by uid 500); 13 May 2010 21:24:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 61082 invoked by uid 500); 13 May 2010 21:24:37 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 61074 invoked by uid 99); 13 May 2010 21:24:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 21:24:37 +0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=AWL,FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tobias.jungen@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 21:24:31 +0000 Received: by wyb42 with SMTP id 42so413123wyb.31 for ; Thu, 13 May 2010 14:24:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=VGnMxcGLZkKpQe4K4+GgZEgGCSS6IQnB/IeWvf9Q34s=; b=DC8Hwa+SzdTPopHm5TeGwHgTlGX6XjYycv/frMavjX3kdNzC6mutp2PaFSrHF/bF8D D/XpKMh2qiMQkZyNqQ+j+9DyfnHGmBNloWQuCCDhPIM8sJ8LliYoXbTkL5pJMpnvGeNA W8osKk/FkR5mRxRfXBX3N2uAtvxKbmAza4YkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=i3e8pcdaxnVCtBcAWMGfhvIOxrouGh4Ozi/swVxJ28YGe1W6NeE9x9BrcOC4qtKa6i LKXnz3APJiT1mzPXKYYbp+BKeXWAqYatReFy5ROlQgTXxDk5+NBvXNUR+lXHxxobe8ou UIctk/rKEEWjXiA74tAtj1gbuygYYTKtTeuvc= MIME-Version: 1.0 Received: by 10.216.182.80 with SMTP id n58mr294895wem.117.1273785849675; Thu, 13 May 2010 14:24:09 -0700 (PDT) Received: by 10.216.183.3 with HTTP; Thu, 13 May 2010 14:24:09 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 May 2010 16:24:09 -0500 Message-ID: Subject: Re: Increment and Decrement operation From: Tobias Jungen To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001485f1e2e217000d0486806198 --001485f1e2e217000d0486806198 Content-Type: text/plain; charset=ISO-8859-1 I don't think this is currently possible. There is some work underway to add it in the future, however: https://issues.apache.org/jira/browse/CASSANDRA-721 https://issues.apache.org/jira/browse/CASSANDRA-1016 On Thu, May 13, 2010 at 4:04 PM, Beier Cai wrote: > Is it possible to increment/decrement a column value directly without > reading it first and then do the operation on client side? In mysql you can > do "UPDATE mytable SET counter=counter+1", any equivalent in Cassandra? > > Beier, Cai > beiercai@gmail.com > --001485f1e2e217000d0486806198 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I don't think this is currently possible. There is some work underway t= o add it in the future, however:

https://issues.apache.org/jira/browse/CASSANDR= A-721
https://is= sues.apache.org/jira/browse/CASSANDRA-1016

On Thu, May 13, 2010 at 4:04 PM, Beier Cai <beiercai@gmail.com> wrote:<= br>
Is it possib= le to increment/decrement a column value directly without reading it first = and then do the operation on client side? In mysql you can do "UPDATE = mytable SET counter=3Dcounter+1", any equivalent in Cassandra?

Beier, Cai
beiercai@gmail.com

--001485f1e2e217000d0486806198--