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 6C47A9BC2 for ; Thu, 8 Dec 2011 10:57:58 +0000 (UTC) Received: (qmail 50622 invoked by uid 500); 8 Dec 2011 10:57:56 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 50600 invoked by uid 500); 8 Dec 2011 10:57:56 -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 50592 invoked by uid 99); 8 Dec 2011 10:57:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 10:57:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sylvain@datastax.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 10:57:48 +0000 Received: by ghrr18 with SMTP id r18so1552540ghr.31 for ; Thu, 08 Dec 2011 02:57:27 -0800 (PST) Received: by 10.236.178.33 with SMTP id e21mr3491145yhm.4.1323341847329; Thu, 08 Dec 2011 02:57:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.98.3 with HTTP; Thu, 8 Dec 2011 02:57:07 -0800 (PST) In-Reply-To: References: From: Sylvain Lebresne Date: Thu, 8 Dec 2011 11:57:07 +0100 Message-ID: Subject: Re: Composite columns vs Protocol Buffers when all you need is to pack many things in a single column To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org CompositeType is meant as a comparator to deal with composite column names. While it is possible to use it as a column value validator, I don't see any good use of that. -- Sylvain On Thu, Dec 8, 2011 at 6:13 AM, Asil Klin wrote: > I know=A0Composite columns are used for some very =A0useful scenarios(lik= e to > replace=A0super columns) which cannot be helped with anything else. > But, for situations when you just need to pack many things in a single > column efficiently and such that the retrievals are also performant, whic= h > one should be used ? > > (I need to store the serialized data as column value.)