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 69E3D95E7 for ; Fri, 10 Feb 2012 20:16:20 +0000 (UTC) Received: (qmail 3937 invoked by uid 500); 10 Feb 2012 20:16:18 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 3802 invoked by uid 500); 10 Feb 2012 20:16:17 -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 3794 invoked by uid 99); 10 Feb 2012 20:16:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 20:16:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.146.121.108] (HELO mail.venarc.com) (63.146.121.108) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 20:16:08 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.venarc.com (Postfix) with ESMTP id CE03A6F00002 for ; Fri, 10 Feb 2012 12:15:46 -0800 (PST) X-Virus-Scanned: amavisd-new at venarc.com Received: from mail.venarc.com ([127.0.0.1]) by localhost (mail.venarc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eq9SIbS53SqM for ; Fri, 10 Feb 2012 12:15:46 -0800 (PST) Received: from venarc-drew.venarc.pvt (97-93-43-186.static.mtpk.ca.charter.com [97.93.43.186]) by mail.venarc.com (Postfix) with ESMTPSA id 929926F00001 for ; Fri, 10 Feb 2012 12:15:46 -0800 (PST) From: Drew Kutcharian Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Deleting a column vs setting it's value to empty Date: Fri, 10 Feb 2012 12:15:46 -0800 Message-Id: <2DCBA779-C020-4B32-8940-499CAE7B73DB@venarc.com> To: user@cassandra.apache.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org Hi Everyone, Let's say I have the following object which I would like to save in = Cassandra: class User { UUID id; //row key String name; //columnKey: "name", columnValue: the name of the user String description; //columnKey: "description", columnValue: the = description of the user } Description can be nullable. What's the best approach when a user = updates her description and sets it to null? Should I delete the = description column or set it to an empty string? In addition, if I go with the delete column strategy, since I don't know = what was the previous value of description (the column could not even = exist), what would happen when I delete a non existent column? Thanks, Drew