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 D78BD7282 for ; Wed, 12 Oct 2011 13:51:53 +0000 (UTC) Received: (qmail 13335 invoked by uid 500); 12 Oct 2011 13:51:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 13307 invoked by uid 500); 12 Oct 2011 13:51:51 -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 13299 invoked by uid 99); 12 Oct 2011 13:51:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 13:51:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ey0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 13:51:46 +0000 Received: by eyg24 with SMTP id 24so804538eyg.31 for ; Wed, 12 Oct 2011 06:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=f00x2LcQoP/yk/VLU2SJcFnzbM5QXnN5mkG8ZvF3zGQ=; b=rs6N1nkK/EDfC1XvFkBZEi4YV7sRFpi2phLg6Aq0lxv+pWdzMiuSzhgraZFsQbpgjL fJCJkamDi2npsmr+eLpq2NFZ8V++I1UvJ1h73S7eaAtelsuE4hv6ot5L4UBZVJzh5vhV K+nb86PTEQorZeJh75GymrISbQ5LLT3qLJZQA= Received: by 10.213.9.16 with SMTP id j16mr99937ebj.90.1318427483244; Wed, 12 Oct 2011 06:51:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.17.71 with HTTP; Wed, 12 Oct 2011 06:51:03 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Wed, 12 Oct 2011 08:51:03 -0500 Message-ID: Subject: Re: Using ttl to expire columns rather than using delete To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well, the reason you'd want to run repair is to get the tombstone on nodes that missed the insert. And that would only be important if you sometimes generate inserts that would be otherwise shadowed by the tombstone, right? On Wed, Oct 12, 2011 at 2:17 AM, Sylvain Lebresne wr= ote: > Unfortunately, expiring column are no magic bullet. If you insert > columns with ttl=3D1, > you're roughly doing the same thing than deleting, so the exact same > rule concerning > repair applies. > > What can be said on repair and expiring columns (and that may or may > not be helpful) > is that if you have a column family on which all and every column you > insert has a > ttl > n (for some n, including n =3D infinity) and ttl are your only > means of deletion for > that CF (i.e, no deletes), then it would be enough to run repair on > that column family > only every gc_grace + n period of time (instead of every gc_grace period)= . > > -- > Sylvain > > On Wed, Oct 12, 2011 at 3:49 AM, Terry Cumaranatunge = wrote: >> Hello, >> >> If you set a ttl and expire a column, I've read that this eventually tur= ns >> into a tombstone and will be cleaned out by the GC. Are expirations >> considered a form of delete that still requires a node repair to be run = in >> gc_grace_period seconds? The operations guide says you have to run node >> repair if you have deletes, so I'm trying to find out if we can upsert t= he >> column with expirations=A0using a ttl=3D1=A0to substitute deletes. The n= ode repair >> operations is very intensive in our environment and causes a >> significant=A0performance degradation on the system. >> >> Thanks > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com