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 982759680 for ; Mon, 9 Jul 2012 04:48:55 +0000 (UTC) Received: (qmail 96017 invoked by uid 500); 9 Jul 2012 04:48:53 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 95736 invoked by uid 500); 9 Jul 2012 04:48: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 95709 invoked by uid 99); 9 Jul 2012 04:48:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 04:48:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prasen.bea@gmail.com designates 209.85.217.172 as permitted sender) Received: from [209.85.217.172] (HELO mail-lb0-f172.google.com) (209.85.217.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 04:48:46 +0000 Received: by lbbgo11 with SMTP id go11so16895835lbb.31 for ; Sun, 08 Jul 2012 21:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=U0pUgpNN//7Cc1mv9QCHiq2StGLEqkuucxFIwIVGpCU=; b=VSYLw7Y7/a4Vigo1L62v6p39n6vTVOMFh4Gsqxqx/5lALTNbHHGRLhRNW7m1WSRfqR M8WhZHOnPfakz9J4z9ACvbqG6ysUjjvk4XrFZjkVUzBBeqBysSuCzyBbwZ1s4L1vEVZP /73cR/qYQJ8d/n2DGusNI1y2515sgsCxZUYTf8/pvOlDV0MwR1zcDen5oZOl/7OVXjW+ Tj+wzGDnWJs3kYNqE6GXGEUxKd3xVIcRYXz8dx/nkLelPbyjl4mXnhLqfyZTs3GBxJoR rQkdoHJiOsA2P/nHChvf9nHnmGy+QBR8NeacOEHXqWGJKbIx7bXa5uHe/j+wqV4ToX+n UPhQ== MIME-Version: 1.0 Received: by 10.152.102.234 with SMTP id fr10mr39461948lab.32.1341809304776; Sun, 08 Jul 2012 21:48:24 -0700 (PDT) Received: by 10.112.11.69 with HTTP; Sun, 8 Jul 2012 21:48:24 -0700 (PDT) In-Reply-To: <94A5F3E1-1DD6-4A6A-8D17-D7BFD71F100B@thelastpickle.com> References: <94A5F3E1-1DD6-4A6A-8D17-D7BFD71F100B@thelastpickle.com> Date: Mon, 9 Jul 2012 10:18:24 +0530 Message-ID: Subject: Re: Effect of rangequeries with RandomPartitioner From: prasenjit mukherjee To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Thanks Aaron for your response. Some follow up questions/assumptions/clarifications : 1. With RandomPartitioner, on a given node, are the keys sorted by their hash_values or original/unhashed keys ? 2. With RandomPartitioner, on a given node, are the columns (for a given key) always sorted by their column_names ? 3. From what I understand, token = hash(key) for a RandomPartitioner, and hence any key-range queries will return bogus results. Although I believe column-range-queries should succeed even in RP if they are always sorted by column_names. -Thanks, Prasenjit On Mon, Jul 9, 2012 at 12:17 AM, aaron morton wrote: > for background > http://wiki.apache.org/cassandra/FAQ#range_rp > > It maps the start key to a token, and then scans X rows from their on CL > number of nodes. Rows are stored in token order. > > Cheers > > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > > On 7/07/2012, at 11:52 PM, prasenjit mukherjee wrote: > > Wondering how a rangequery request is handled if RP is used. Will the > receiving node do a fan-out to all the nodes in the ring or it will > just execute the rangequery on its own local partition ? > > -- > Sent from my mobile device > >