Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 62555 invoked from network); 23 Jul 2009 17:41:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jul 2009 17:41:34 -0000 Received: (qmail 45918 invoked by uid 500); 23 Jul 2009 17:42:39 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 45899 invoked by uid 500); 23 Jul 2009 17:42:39 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 45890 invoked by uid 99); 23 Jul 2009 17:42:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 17:42:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of michael.greene@gmail.com designates 209.85.210.190 as permitted sender) Received: from [209.85.210.190] (HELO mail-yx0-f190.google.com) (209.85.210.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 17:42:28 +0000 Received: by yxe28 with SMTP id 28so304776yxe.32 for ; Thu, 23 Jul 2009 10:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=jE/CfEWqHM0vx5NuWb9JoYHMtD0QzMRT0L7msC+K8Gc=; b=k+q0sNq674ItSSl8bLl+PYNdZqwzTfhDtUQMQB9QlT9ZPFehcqK1o3F+xeGDU5SCAI ZbtHWJdvwZkFc7YmT66st0NHJhYcWSjPeZqc+GQmkbKHEwasjMon7uoeNz1OXP/9Yzoz sS865VanHw2z9sDn9Ab3ID0cuoyDxzukxLK4Q= 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:content-transfer-encoding; b=B3F5gJuZ4Z4JdPLsrG70Xxu1A5fGrmHF8rIwjRAqGtOU87l63HljjG23Hd9yKgD4qV FS72HROBScuV/jhjeQaribTbMoNscVhZo9bf/rFJTgO+QhCNVVdLiN2FYMnLafOOC2ZV h/w8GSlVWkaNjlLFeAqb7gnNC9Db4UvZMA/fY= MIME-Version: 1.0 Received: by 10.100.107.20 with SMTP id f20mr3275893anc.14.1248370927036; Thu, 23 Jul 2009 10:42:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 23 Jul 2009 12:42:06 -0500 Message-ID: Subject: Re: idiomatic way to do zeitgeist kind of counter behavior in cassandra From: Michael Greene To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You would call client.executeQuery("CQL statement goes here") However, this is not recommended, as CQL will be removed soon and there is currently no documentation on it. That previous topic did not recommend using CQL, the user's original question just included it. That thread discusses pitfalls of using Cassandra for this type of counter and appropriate alternatives or workarounds until Cassandra gets features which make it better for this situation. Michael On Thu, Jul 23, 2009 at 2:43 AM, wrote: > How do we access cql from the python thrift api > thanks > > On Wed, Jul 22, 2009 at 9:36 PM, Michael Greene > wrote: >> >> See this previous discussion of a related topic >> http://markmail.org/thread/w3mrh4h64xpf3vuj >> >> Michael >> >> On Wed, Jul 22, 2009 at 11:31 PM, wrote: >> > I m trying to figure out how to implement a zeitgeist in cassandra >> > >> > How do we implement the counter, do we need to the get the value >> > increment >> > and insert again >> > or are there other ways to do this >> > >> > thanks a lot >> > > > > > -- > Bidegg worlds best auction site > http://bidegg.com >