Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 31728 invoked from network); 12 Mar 2010 03:35:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Mar 2010 03:35:16 -0000 Received: (qmail 28841 invoked by uid 500); 12 Mar 2010 03:34:41 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 28689 invoked by uid 500); 12 Mar 2010 03:34:40 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 28672 invoked by uid 99); 12 Mar 2010 03:34:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Mar 2010 03:34:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,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 bill.w.au@gmail.com designates 209.85.221.199 as permitted sender) Received: from [209.85.221.199] (HELO mail-qy0-f199.google.com) (209.85.221.199) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Mar 2010 03:34:32 +0000 Received: by qyk37 with SMTP id 37so994131qyk.20 for ; Thu, 11 Mar 2010 19:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=fDNtez9uplKfEIqUbAdoRQdS53JT64fYayLJHVm+JVM=; b=HFO3obzNAc1G2fRrDSN6N2hMwSIsXdImdtVXfRDfk0obUXrwLAeDxeXJ/vIuEtqBfy TrYX00xaQMeFIzEpAtmlxSDhSrvheBqInX1zCEEPCXPmwH57IgdsmH5iv44pIO4MBSnd bPV+UbCM5U/JbdXF5l9p+6HlyFrDk/NHYUrHE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cPP6PHuk9gHEUpKjPWLCpleIlGAjL4ghYuTyfGHZJW0RaNv/t2FWzA6ni2/vp8MAqv rDeEICGhU79dntJ5BSuPPh2sfksN9EF3K6MaSEPlbxnmi4oagnaAso4RKPsyFAYv0sm4 mw+JrtdNgiTQohXgSJhsxZDyo3fILJ3bv6fHQ= MIME-Version: 1.0 Received: by 10.220.124.25 with SMTP id s25mr645163vcr.128.1268364851430; Thu, 11 Mar 2010 19:34:11 -0800 (PST) Date: Thu, 11 Mar 2010 22:34:11 -0500 Message-ID: <3b5f72031003111934m75e9de7w4616642b5a14a9fe@mail.gmail.com> Subject: question about deleting from cassandra From: Bill Au To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=00504501671f6a5801048192347f X-Virus-Checked: Checked by ClamAV on apache.org --00504501671f6a5801048192347f Content-Type: text/plain; charset=ISO-8859-1 Let take Twitter as an example. All the tweets are timestamped. I want to keep only a month's worth of tweets for each user. The number of tweets that fit within this one month window varies from user to user. What is the best way to accomplish this? There are millions of users. Do I need to loop through all of them and handle the delete one user at a time? Or is there a better way to do this? If a user has not post a new tweet in more than a month, I also want to remove the user itself. Do I also need to do looking through all the users one at a time? Bill --00504501671f6a5801048192347f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Let take Twitter as an example. =A0All the tweets are timestamped. =A0I wan= t to keep only a month's worth of tweets for each user. =A0The number o= f tweets that fit within this one month window varies from user to user. = =A0What is the best way to accomplish this? =A0There are millions of users.= =A0Do I need to loop through all of them and handle the delete one user at= a time? =A0Or is there a better way to do this? =A0If a user has not post = a new tweet in more than a month, I also want to remove the user itself. = =A0Do I also need to do looking through all the users one at a time?

Bill
--00504501671f6a5801048192347f--