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 5A19510413 for ; Wed, 31 Jul 2013 21:55:07 +0000 (UTC) Received: (qmail 3476 invoked by uid 500); 31 Jul 2013 21:55:04 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 3412 invoked by uid 500); 31 Jul 2013 21:55:04 -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 3404 invoked by uid 99); 31 Jul 2013 21:55:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 21:55:03 +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 edlinuxguru@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 21:55:00 +0000 Received: by mail-wi0-f171.google.com with SMTP id hr7so4413878wib.10 for ; Wed, 31 Jul 2013 14:54:38 -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=TK6u6CFhNpeaOaYxOZrLpieO764k2yG+rYeFQkSAyDg=; b=Kwfx1/SzOt4n4zWtNDM7tJ1tPU9+zc11rmphnVKWHjM8VCmrLrtsE867+Ia4z3Urt0 apA28mHbEe8ZOFvUlanc5NcfZEO4psggsx8R4wwzK7jAyv2e06x7pPyX0Lg514cC1JQ2 nd/K1re3t3XPjh8zSVNQy1TP0T3OmPYtKtRr+Sfcw040UXj3dqjyGbnhm/rvpNsQhsFj IAkWHPMmkYZeWSDA+LDGKoKojd+hNYVENj4Pgx7CuMOOlDWb2fdUafz1LX8r3Can2m7T I0nQ/xHOYKyc3NdCU2RvlA2UhzqOzhMzC40qURS9V0RQVTuBuWFR7f0fmfxr9cUdorTR wacA== MIME-Version: 1.0 X-Received: by 10.194.22.227 with SMTP id h3mr22795wjf.7.1375307678847; Wed, 31 Jul 2013 14:54:38 -0700 (PDT) Received: by 10.194.125.177 with HTTP; Wed, 31 Jul 2013 14:54:38 -0700 (PDT) In-Reply-To: <20130731173257.GI1764@snowy.squish.net> References: <20130731104703.GG1764@snowy.squish.net> <20130731173257.GI1764@snowy.squish.net> Date: Wed, 31 Jul 2013 17:54:38 -0400 Message-ID: Subject: Re: CQL and undefined columns From: Edward Capriolo To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=047d7b5d8815a798af04e2d5c5e0 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d8815a798af04e2d5c5e0 Content-Type: text/plain; charset=ISO-8859-1 You should also profile what your data looks like on disk before picking a format. It may not be as efficient to use one form or the other due to extra disk overhead. On Wed, Jul 31, 2013 at 1:32 PM, Jon Ribbens < jon-cassandra@unequivocal.co.uk> wrote: > On Wed, Jul 31, 2013 at 02:21:52PM +0200, Alain RODRIGUEZ wrote: > > I like to point to this article from Sylvain, which is really well > > written. > > http://www.datastax.com/dev/blog/thrift-to-cql3 > > Ah, thankyou, it looks like a combination of multi-column "PRIMARY KEY" > and use of collections may well suffice for what I want. I must admit > that I did not find any of this particularly obvious from the CQL > documentation. > > By the way, http://cassandra.apache.org/doc/cql3/CQL.html#createTableStmt > says "A table with COMPACT STORAGE must also define at least one > clustering key", which seems to contradict definition 2 in the > thrift-to-cql3 document you pointed me to. > --047d7b5d8815a798af04e2d5c5e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
You should also profile what your data looks like on disk = before picking a format. It may not be as efficient to use one form or the = other due to extra disk overhead.

<= br>
On Wed, Jul 31, 2013 at 1:32 PM, Jon Ribbens <jon-cassandra@unequivocal.co.uk> wrote:
On Wed, Jul 31, 2013 at 02:21:52PM +0200, Alain RODRIGUEZ wrote:
> =A0 =A0I like to point to this article from Sylvain, which is really w= ell
> =A0 =A0written.
> =A0 =A0http://www.datastax.com/dev/blog/thrift-to-cql3

Ah, thankyou, it looks like a combination of multi-column "PRIMARY KEY= "
and use of collections may well suffice for what I want. I must admit
that I did not find any of this particularly obvious from the CQL
documentation.

By the way, http://cassandra.apache.org/doc/cql3/CQL.html#= createTableStmt
says "A table with COMPACT STORAGE must also define at least one
clustering key", which seems to contradict definition 2 in the
thrift-to-cql3 document you pointed me to.

--047d7b5d8815a798af04e2d5c5e0--