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 2648D90D5 for ; Mon, 21 May 2012 15:00:19 +0000 (UTC) Received: (qmail 97368 invoked by uid 500); 21 May 2012 15:00:16 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 97334 invoked by uid 500); 21 May 2012 15:00:16 -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 97326 invoked by uid 99); 21 May 2012 15:00:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 15:00:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of filippo@ntoklo.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; Mon, 21 May 2012 15:00:08 +0000 Received: by eaaq13 with SMTP id q13so1474659eaa.31 for ; Mon, 21 May 2012 07:59:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type :x-gm-message-state; bh=5/qxjq1Bwox04/Ebpt793+js3FSOqynM+JuVkXJqODs=; b=Taz78Lb1B6XL2tanOTpZjFz10Fol7jaQ8COEuRXt8vPJ6XLMXj86vvpi2qC+FHxG2s 6eyBMtwBCewNgYceA4D2GCH1X8z2Dmjc+WTWDa3TZEls8o6u42x30oeTLkrkurjrLbW8 Mu7+jH+VmjplLmvk9Fxggxph3SSykmQoxIEAIcIv8PLVCI57P5EJCD4I3rrLXVIGuUgV gAG0SgNmemvaAtdbUNCXKx/u7EnpSMjdethQ1uY7/PCZMl2+boYeOmH+BRdmyC/8bS49 ngVRtigPXBiqxKMlRS4aeGRT2OKfb8bPwAmQt7MijIUTdZN6j+PBPMsYOThiu1BRRcEe Ld4g== Received: by 10.14.53.74 with SMTP id f50mr3659030eec.99.1337612387202; Mon, 21 May 2012 07:59:47 -0700 (PDT) Received: from Filippos-MacBook.local ([80.71.29.65]) by mx.google.com with ESMTPS id u7sm83564382eeb.7.2012.05.21.07.59.45 (version=SSLv3 cipher=OTHER); Mon, 21 May 2012 07:59:45 -0700 (PDT) Date: Mon, 21 May 2012 15:59:43 +0100 From: Filippo Diotalevi To: user@cassandra.apache.org Message-ID: <55572E09C8F14649BE44730461642965@ntoklo.com> Subject: Ordering counters in Cassandra X-Mailer: sparrow 1.5 (build 1043.1) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4fba585f_7fb7e0aa_424" X-Gm-Message-State: ALoCoQlmIa8z+A2g2FbzJ3Cc2BGRNPhq/vQHqVNl2P6DrPNAsd6x5EvOtuNXIzQigc8CYeaCduZo X-Virus-Checked: Checked by ClamAV on apache.org --4fba585f_7fb7e0aa_424 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand what's the best design for a simple "ranking" use cases. I have, in a row, a good number (10k - a few 100K) of counters; each one is counting the occurrence of an event. At the end of day, I want to create a ranking of the most occurred event. What's the best approach to perform this task? The brute force approach of retrieving the row and ordering it doesn't work well (the call usually goes timeout, especially is Cassandra is also under load); I also don't know in advance the full set of event names (column names), so it's difficult to slice the get call. Is there any trick to solve this problem? Maybe a way to retrieve the row ordering for counter values? Thanks, -- Filippo Diotalevi --4fba585f_7fb7e0aa_424 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
I'm trying to understand what's the best desig= n for a simple =22ranking=22 use cases.
I have, in a row, a goo= d number (10k - a few 100K) of counters; each one is counting t= he occurrence of an event. At the end of day, I want to create a ranking = of the most occurred event.

What's the best appr= oach to perform this task=3F 
The brute force approach of = retrieving the row and ordering it doesn't work well (the call usually go= es timeout, especially is Cassandra is also under load); I also don't kno= w in advance the full set of event names (column names), so it's difficul= t to slice the get call.

Is there any trick to s= olve this problem=3F Maybe a way to retrieve the row ordering for counter= values=3F

Thanks,
-- 
=
=46ilippo Diotalevi


--4fba585f_7fb7e0aa_424--