From cassandra-user-return-897-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Sat Oct 10 13:40:27 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 64431 invoked from network); 10 Oct 2009 13:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Oct 2009 13:40:27 -0000 Received: (qmail 19463 invoked by uid 500); 10 Oct 2009 13:40:26 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 19431 invoked by uid 500); 10 Oct 2009 13:40:26 -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 19422 invoked by uid 99); 10 Oct 2009 13:40:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Oct 2009 13:40:26 +0000 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.187] (HELO mail-px0-f187.google.com) (209.85.216.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Oct 2009 13:40:14 +0000 Received: by pxi17 with SMTP id 17so9398609pxi.21 for ; Sat, 10 Oct 2009 06:39:53 -0700 (PDT) Received: by 10.115.26.7 with SMTP id d7mr5556257waj.12.1255181992959; Sat, 10 Oct 2009 06:39:52 -0700 (PDT) Received: from ?10.27.63.119? ([166.205.130.216]) by mx.google.com with ESMTPS id 23sm1389587pxi.1.2009.10.10.06.39.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Oct 2009 06:39:51 -0700 (PDT) References: <9A66E7B9-D68E-45FE-8623-D2FBEDB0C2B3@joestump.net> Message-Id: <9EDC995B-022A-427E-AA50-5B0F4EFE218F@joestump.net> From: Joe Stump To: "cassandra-user@incubator.apache.org" In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-2--150720639 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (iPhone Mail 7C144) Subject: Re: Custom partitioners Date: Sat, 10 Oct 2009 07:37:49 -0600 Cc: "cassandra-user@incubator.apache.org" X-Mailer: iPhone Mail (7C144) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-2--150720639 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit As I said in my email, it's a code test. Simply meant to test an applicant's skills during the hiring process. I'm aware of OPP and COPP and choosing partitioners. --Joe On Oct 10, 2009, at 7:02, Mark Robson wrote: > > 2009/10/10 Joe Stump > I've got a guy doing a code test for us and he has some questions > about custom partitioners: > http://gist.github.com/205537 > > Wondering if anyone could chime in. > > > I'm curious as to why you don't just use the > OrderPreservingPartitioner and apply the transformation to the email > addresses in the application before you use them as keys. > > One of the problems with Cassandra is that you can only use one > partitioner for the whole cluster. > > When I've looked at using it, it has always been clear that key > choice is vital for range scans to be at all useful. > > Mark --Apple-Mail-2--150720639 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
As I said in my email, it's a code test. Simply meant to test an applicant's skills during the hiring process. 

I'm aware of OPP and COPP and choosing partitioners. 

--Joe

On Oct 10, 2009, at 7:02, Mark Robson <markxr@gmail.com> wrote:


2009/10/10 Joe Stump <joe@joestump.net>
I've got a guy doing a code test for us and he has some questions about custom partitioners:
http://gist.github.com/205537

Wondering if anyone could chime in.


I'm curious as to why you don't just use the OrderPreservingPartitioner and apply the transformation to the email addresses in the application before you use them as keys.

One of the problems with Cassandra is that you can only use one partitioner for the whole cluster.

When I've looked at using it, it has always been clear that key choice is vital for range scans to be at all useful.

Mark
--Apple-Mail-2--150720639--