Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 83296 invoked from network); 7 Aug 2010 11:22:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Aug 2010 11:22:39 -0000 Received: (qmail 21498 invoked by uid 500); 7 Aug 2010 11:22:38 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 21334 invoked by uid 500); 7 Aug 2010 11:22:34 -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 21326 invoked by uid 99); 7 Aug 2010 11:22:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Aug 2010 11:22:33 +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 th.heller@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Aug 2010 11:22:25 +0000 Received: by qwe5 with SMTP id 5so6326241qwe.31 for ; Sat, 07 Aug 2010 04:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=bzaBPIQOY+fURzIAiYiIlqMPfOOHzRlyF7jnlInLOQc=; b=d7gwv8KT2aOtJHSJwUdjsr2rmhZKpukri9p/Gbgm4Y4X69X+JRz8PTfAGqaZgHEug6 zUS7Cg72lnWrhVcnRSdw6Q4N5DEql6ym6Qs7BL2fyKDSJ/+/It3T1UMtXlQjNhr2BaHI Go8ZucL9tiR+qqawPJFsiyO+IksWjU4ZV8q6Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=IUZBUxkG3GWSrZdWKQQC4tXaShvgjupqbhByRBYNGO9YJzkULpjCvCBZgIX1S0g6ag iDZN2As0Cuu1bUZAtfMWVFHBzHrnM7WUnQkMbnmkxsDuRhFPhkaKZDo4LFVS+b05BIFx 5OWHMzBkrz1t6A73oBiuO7nH7jagMCeB6t2K8= MIME-Version: 1.0 Received: by 10.220.49.202 with SMTP id w10mr8841485vcf.210.1281180124615; Sat, 07 Aug 2010 04:22:04 -0700 (PDT) Sender: th.heller@gmail.com Received: by 10.220.176.68 with HTTP; Sat, 7 Aug 2010 04:22:04 -0700 (PDT) In-Reply-To: <4C5CB45A.8040301@gmail.com> References: <4C51F4F7.6090801@gmail.com> <4C54BC12.3040506@gmail.com> <4C5CB45A.8040301@gmail.com> Date: Sat, 7 Aug 2010 13:22:04 +0200 X-Google-Sender-Auth: 3GPvtKwhrRbZiONiSd1BX0zE8p8 Message-ID: Subject: Re: Columns limit From: Thomas Heller To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org > Ok, I think the part I was missing was the concatenation of the key and > partition to do the look ups. Is this the preferred way of accomplishing > needs such as this? Are there alternatives ways? Depending on your needs you can concat the row key or use super columns. > How would one then "query" over multiple days? Same question for all days. > Should I use range_slice or multiget_slice? And if its range_slice does that > mean I need OrderPreservingPartitioner? The last 3 days is pretty simple: ['2010-08-07', '2010-08-06', '2010-08-05'], as is 7, 31, etc. Just generate the keys in your app and use multiget_slice. If you want to get all days where a specific ip address had some requests you'll just need another CF where the row key is the addr and column names are the days (values optional again). Pretty much the same all over again, just add another CF and insert the data you need. get_range_slice in my experience is better used for "offline" tasks where you really want to process every row there is. /thomas