Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA4A9D495 for ; Thu, 2 Aug 2012 05:24:41 +0000 (UTC) Received: (qmail 56310 invoked by uid 500); 2 Aug 2012 04:22:40 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 55921 invoked by uid 500); 2 Aug 2012 04:22:39 -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 55882 invoked by uid 99); 2 Aug 2012 04:22:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 04:22:38 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Roshni.Rajagopal@wal-mart.com designates 161.168.202.17 as permitted sender) Received: from [161.168.202.17] (HELO PPES-Mail-N2.wal-mart.com) (161.168.202.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 04:22:28 +0000 Received: from pps.filterd (PPES-Mail-N2 [127.0.0.1]) by PPES-Mail-N2.wal-mart.com (8.14.4/8.14.4) with SMTP id q724LoLt003444 for ; Wed, 1 Aug 2012 23:22:07 -0500 Received: from honts3513.homeoffice.wal-mart.com (walmart.com [161.168.202.1] (may be forged)) by PPES-Mail-N2.wal-mart.com with ESMTP id 16fg92rvj5-1 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Wed, 01 Aug 2012 23:22:07 -0500 Received: from HONTS35007.homeoffice.Wal-Mart.com (172.27.148.158) by HONTS3513.homeoffice.Wal-Mart.com (161.166.40.179) with Microsoft SMTP Server (TLS) id 8.3.192.1; Wed, 1 Aug 2012 23:22:03 -0500 Received: from DCNTS3701us.homeoffice.Wal-Mart.com (172.29.104.84) by HONTS35007.homeoffice.Wal-Mart.com (172.27.148.158) with Microsoft SMTP Server (TLS) id 14.2.309.2; Wed, 1 Aug 2012 23:22:03 -0500 Received: from DCNTS3000XCHUS.homeoffice.Wal-Mart.com ([172.29.104.74]) by DCNTS3701us.homeoffice.Wal-Mart.com ([172.29.104.84]) with mapi; Wed, 1 Aug 2012 21:22:03 -0700 From: Roshni Rajagopal To: "user@cassandra.apache.org" Date: Wed, 1 Aug 2012 21:24:47 -0700 Subject: Re: Does Cassandra support operations in a transaction? Thread-Topic: Does Cassandra support operations in a transaction? Thread-Index: Ac1wZl4a+awwKkGaSnCgeMqriTvgkw== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.2.120421 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.260,0.0.0000 definitions=2012-08-01_06:2012-08-01,2012-08-01,1970-01-01 signatures=0 Hi Ivan, Cassandra supports 'tunable consistency' . If you always read and write at = a quorum (or local quorum for multi data center) from one , you can guarant= ee that the results will be consistent as in all the data will be compared = and the latest will be returned, and no data will be out of date. This is a= t a loss of performance- it will be fastest to just read and write once rat= her than check a quorum of nodes. What you chose depends on what your application needs are. Is it ok if some= users receive out of date data (it isn't earth shattering if someone doesn= 't know what you're eating right now), or is it a banking transaction syste= m where all entities must be consistently updated. So designing in cassandra priortizes de-normalization. You cannot have refe= rential integrity that 2 tables (col families in cassandra) are in sync bec= ause the database has designed it to be so using foreign keys. The applicat= ion needs to ensure that all data in column families are accurate and not o= ut of sync, because data elements may be duplicated in different col famili= es. You cannot have 2 different entities and ensure that changes to both will b= e done and then only be visible to others. Regards, From: Jeffrey Kesselman > Reply-To: "user@cassandra.apache.org" > To: "user@cassandra.apache.org" > Subject: Re: Does Cassandra support operations in a transaction? Short story is that few if any of the NoSql systems supprot transactions na= tively. Thats oen of the big compromises they make. What they call "eventu= al consistancy" is actually eventual Durabiltiy in ACID terms. Consistancy, as meant by the C in ACID, is not gauranteed at all. On Wed, Aug 1, 2012 at 6:21 AM, Ivan Jiang > wrote: Hi, I am a new guy to Cassandra, I wonder if available to call Cassandra in= one Transaction such as in Relation-DB. Thanks in advance. Best Regards, Ivan Jiang -- It's always darkest just before you are eaten by a grue. This email and any files transmitted with it are confidential and intended = solely for the individual or entity to whom they are addressed. If you have= received this email in error destroy it immediately. *** Walmart Confident= ial ***