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 0338110D6C for ; Tue, 6 Jan 2015 18:01:27 +0000 (UTC) Received: (qmail 52555 invoked by uid 500); 6 Jan 2015 18:01:25 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 52506 invoked by uid 500); 6 Jan 2015 18:01:25 -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 52488 invoked by uid 99); 6 Jan 2015 18:01:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 18:01:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.217.177] (HELO mail-lb0-f177.google.com) (209.85.217.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 18:00:59 +0000 Received: by mail-lb0-f177.google.com with SMTP id b6so19286521lbj.22 for ; Tue, 06 Jan 2015 09:58:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=9YgC23diQIpAQxQslyOyK2B1aA0FznIfy7CQ2LMzbds=; b=jiCS3oqde23X3cou0ZocWPGB33JDfX46RZZDl7H9woM28XQZhDqs9fGUOYW1FwLh5Z QY0beWi2KgUgaESI++LXLbnhH9mm6nXYT99pFIZPcqmtfCYMpsbVeBR4EpFME95zOdvB 1pjaHopWkfIewhuMzS6/C2XaIPqTl+PMTO9rjUrPp0G/j5Qw5CYhcct94kIkKGVeRrJF 8rkF4CmVhhLgXrqizVCIMQywixFZ3RhWnrM7YXuwncSfMxL4ba6u8PheoZpJmnQ7wZN2 arD63uZcEsIXIARyTcA+LyXd0Wzm7gQTgBJb/djdMKRaC3PwCP/G/bs3v+o1pfAytifu DI2A== X-Gm-Message-State: ALoCoQn1O6jM36JLzhNPd2c37E6JfePxPfbs087OCvpQw5oa34+xqzU2Prhtd4Kkb2dBcN7Pw/fV MIME-Version: 1.0 X-Received: by 10.152.234.9 with SMTP id ua9mr100719954lac.44.1420567102636; Tue, 06 Jan 2015 09:58:22 -0800 (PST) Received: by 10.25.127.208 with HTTP; Tue, 6 Jan 2015 09:58:22 -0800 (PST) In-Reply-To: References: Date: Tue, 6 Jan 2015 09:58:22 -0800 Message-ID: Subject: Re: Queries required before data modeling? From: James Rothering To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11340cac885d3b050bff8de1 X-Virus-Checked: Checked by ClamAV on apache.org --001a11340cac885d3b050bff8de1 Content-Type: text/plain; charset=UTF-8 Yes, "remodeling" the schema will be required to have good performance for new queries which things had not been cached ahead of time to accommodate. In C*, you're going to pre-compute all caching ahead of time, in order to maximize performance. This is in contrast to the relational approach where you get whatever you want, but your performance may degrade when you do the costly joins. Regards, James On Tue, Jan 6, 2015 at 9:47 AM, Srinivasa T N wrote: > Hi All, > I was just googling around and reading the various articles on data > modeling in cassandra. All of them talk about working backwards, i.e., > first now what type of queries you are going to make and select a right > data model which can support those queries efficiently. But one thing I > cannot understand: You can expect me that I can know some queries that I > will be making but how can I know what all queries will be made before > hand? I have to remodel the whole stuff when I get a query which I had not > thought off? > > Regards, > Seenu. > --001a11340cac885d3b050bff8de1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, "remodeling" the schema will be required to= have good performance for new queries which things had not been cached ahe= ad of time to accommodate.

In C*, you're going to pr= e-compute all caching ahead of time, in order to maximize performance.=C2= =A0

This is in contrast to the relational approach= where you get whatever you want, but your performance may degrade when you= do the costly joins.=C2=A0

Regards,
James

On Tue, Jan 6, 2015 at 9:47 AM, Srinivasa T N <seenutn@gmail.c= om> wrote:
Hi All,
=C2=A0=C2=A0 I was just googling around an= d reading the various articles on data modeling in cassandra.=C2=A0 All of = them talk about working backwards, i.e., first now what type of queries you= are going to make and select a right data model which can support those qu= eries efficiently.=C2=A0 But one thing I cannot understand: You can expect = me that I can know some queries that I will be making but how can I know wh= at all queries will be made before hand?=C2=A0 I have to remodel the whole = stuff when I get a query which I had not thought off?

Regards,=
Seenu.

--001a11340cac885d3b050bff8de1--