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 6CBD66449 for ; Tue, 14 Jun 2011 16:26:25 +0000 (UTC) Received: (qmail 59435 invoked by uid 500); 14 Jun 2011 16:26:23 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 59394 invoked by uid 500); 14 Jun 2011 16:26:23 -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 59386 invoked by uid 99); 14 Jun 2011 16:26:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 16:26:23 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of JEREMIAH.JORDAN@morningstar.com designates 216.228.224.32 as permitted sender) Received: from [216.228.224.32] (HELO mx85.morningstar.com) (216.228.224.32) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 14 Jun 2011 16:26:16 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Docs: "Why do deleted keys show up during range scans?" Date: Tue, 14 Jun 2011 11:25:51 -0500 Message-ID: <05CEA178DD88EE4FA89EED77C245F8490FC2ECEF@msex85.morningstar.com> In-Reply-To: <05CEA178DD88EE4FA89EED77C245F8490FC2ECD7@msex85.morningstar.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Docs: "Why do deleted keys show up during range scans?" Thread-Index: Acwp7PwqxrHamQL8QcaN5bGuAhW+OgAwWz9QAABAuNA= References: <4DF60996.3050506@dude.podzone.net> <4DF6294E.2090300@dude.podzone.net> <4DF63634.6060609@dude.podzone.net> <4DF644B0.9070006@dude.podzone.net> <05CEA178DD88EE4FA89EED77C245F8490FC2ECD7@msex85.morningstar.com> From: "Jeremiah Jordan" To: Also, tombstone's are not "attached" anywhere. A tombstone is just a column with special value which says "I was deleted". And I am pretty sure they go into SSTables etc the exact same way regular columns do. -----Original Message----- From: Jeremiah Jordan [mailto:JEREMIAH.JORDAN@morningstar.com]=20 Sent: Tuesday, June 14, 2011 11:22 AM To: user@cassandra.apache.org Subject: RE: Docs: "Why do deleted keys show up during range scans?" I am pretty sure how Cassandra works will make sense to you if you think of it that way, that rows do not get deleted, columns get deleted. While you can delete a row, if I understand correctly, what happens is a tombstone is created which matches every column, so in effect it is deleting the columns, not the whole row. A row key will not be forgotten/deleted until there are no columns or tombstones which reference it. Until there are no references to that row key in any SSTables you can still get that key back from the API. -Jeremiah -----Original Message----- From: AJ [mailto:aj@dude.podzone.net] Sent: Monday, June 13, 2011 12:11 PM To: user@cassandra.apache.org Subject: Re: Docs: "Why do deleted keys show up during range scans?" On 6/13/2011 10:14 AM, Stephen Connolly wrote: > > store the query inverted. > > that way empty -> deleted > I don't know what that means... get the other columns? Can you elaborate? Is there docs for this or is this a hack/workaround? > the tombstones are stored for each column that had data IIRC... but at > this point my grok of C* is lacking I suspected this, but wasn't sure. It sounds like when a row is deleted, a tombstone is not "attached" to the row, but to each column??? So, if all columns are deleted then the row is considered deleted? Hmmm, that doesn't sound right, but that doesn't mean it isn't ! ;o)