Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 19475 invoked from network); 23 May 2010 14:26:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 May 2010 14:26:53 -0000 Received: (qmail 1660 invoked by uid 500); 23 May 2010 14:26:52 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 1636 invoked by uid 500); 23 May 2010 14:26:52 -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 1627 invoked by uid 99); 23 May 2010 14:26:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 May 2010 14:26:52 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 May 2010 14:26:46 +0000 Received: by mail-ww0-f44.google.com with SMTP id 24so1798554wwb.31 for ; Sun, 23 May 2010 07:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=11vU5x3tOrxOKVe13rpqS3iGiLOZHX9qtSnMDW9ybO4=; b=rD50hQV4srPX/9oxGR4iu7r0qhUZ40RSlK/gcwO0Z2Dkr6k6ShrQ8/kgMkabiuz95G q0G/MyLenjiW5S9K9megEx1u4PhchBTz97M3V76oLWpEoKLgTKNsZ02SHDyDEyh9VTN2 QXVSlalaABEVehEdfqD4xxsnJkvJO/xP1J27U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Z01gBX6BR4gOFknZXEYQylTO4S51QIfsyVvukjt4ZMMOYex1i8wX+nwmdcoCOZsUPW olKMGog7KdNy7/Ar0UgxMYOGCkZNVCzqNR22LoPVuU/mS8/nA84t3sal/Ic4IYgARmDR 4slYaBLU+5YzkbgDA/aJ32OhBO6yOqVYUeKdg= Received: by 10.216.161.73 with SMTP id v51mr2562535wek.189.1274624786210; Sun, 23 May 2010 07:26:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.17.197 with HTTP; Sun, 23 May 2010 07:26:06 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Sun, 23 May 2010 09:26:06 -0500 Message-ID: Subject: Re: Go over super column data and delete the first X rows To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org the TTL (expiring columns) feature in 0.7 is the easiest way to do this. Until then you'd have to delete them manually. On Sun, May 23, 2010 at 3:35 AM, Yan Virin wrote: > Hi > I want to use cassandra for storing some data which gets irrelevant with > time. There will be a lot of data and I want to run a procedure which will > delete the oldest from the repository from time to time. > The column name which holds the data is a "timestamp" name, so I will want > delete some range of it from the repository. > What is the most efficient and the easiest way to do this? > > Thanks, > > -- > Jan Virin > http://www.linkedin.com/in/yanvirin > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com