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 E690D76EA for ; Sun, 2 Oct 2011 23:03:33 +0000 (UTC) Received: (qmail 98646 invoked by uid 500); 2 Oct 2011 23:03:30 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 98618 invoked by uid 500); 2 Oct 2011 23:03:30 -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 98610 invoked by uid 99); 2 Oct 2011 23:03:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 23:03:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of woolfel@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 23:03:25 +0000 Received: by vws5 with SMTP id 5so3774730vws.31 for ; Sun, 02 Oct 2011 16:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mv7X5vUn2fBb/b6tl2dIKLKzAdCfBbUy61173xLQcF0=; b=IuaVqKxNJySvyGZTHJgTM1Du46eQeEoW9DlvW1nBqxkPr1zUwKRky3llkQ59CcDucJ maHzs5qUzxkgjvsO/GUk5ozlZVYOQ5J168tOezMi4hP7vZ4nPnA6JNj/IlTic1N0WNmC 772bruU1Dov+wS0HDAsJqRC1oleCLz1BpJ7mY= MIME-Version: 1.0 Received: by 10.52.178.164 with SMTP id cz4mr13953999vdc.467.1317596584372; Sun, 02 Oct 2011 16:03:04 -0700 (PDT) Received: by 10.52.109.202 with HTTP; Sun, 2 Oct 2011 16:03:04 -0700 (PDT) In-Reply-To: References: Date: Sun, 2 Oct 2011 19:03:04 -0400 Message-ID: Subject: Re: Cassandra annotation From: Peter Lin To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 It can be dangerous if wielded like a "sledge-O-matic" and not as funny as watching Gallager smash fruit. danger aside, I do find annotations useful for reducing lots of boiler plate code. On Sun, Oct 2, 2011 at 6:58 PM, aaron morton wrote: > One thing to be careful of is giving developers the power to create CF, or a secondary index, by creating a new Class or annotating a property with @indexed. Adding mucho CF's and indexes can/will result in decreased performance. > > Cheers > ----------------- > Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 1/10/2011, at 9:29 AM, Peter Lin wrote: > >> I know this topic has come up in the past. I'm currently working on a >> set of Cassandra specific annotations that define key, keyspace and >> column in my POJO's. >> >> Instead of hand rolling lots of boiler plate code for creating the >> keyspace, I prefer to annotate my POJO's and have the system do that >> for me. Right now it's part of a closed source project, but I'm >> willing to re-implement and contribute it to cassandra. >> >> Do others find the feature interesting? >> >> Should it be part of cassandra "out of the box"? >> >> If not a part of Cassandra, maybe part of hector? Currently I'm using >> hector client and contributed a few javadocs earlier this year. >> >> all feedback welcome. >> >> peter lin > >