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 DDDA710C47 for ; Fri, 23 Jan 2015 10:15:00 +0000 (UTC) Received: (qmail 19304 invoked by uid 500); 23 Jan 2015 10:14:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 19264 invoked by uid 500); 23 Jan 2015 10:14:57 -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 19254 invoked by uid 99); 23 Jan 2015 10:14:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2015 10:14:57 +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 seenutn@gmail.com designates 209.85.192.50 as permitted sender) Received: from [209.85.192.50] (HELO mail-qg0-f50.google.com) (209.85.192.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2015 10:14:52 +0000 Received: by mail-qg0-f50.google.com with SMTP id f51so5331182qge.9 for ; Fri, 23 Jan 2015 02:14:31 -0800 (PST) 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=JPTrvTi93c7U0g1BTt9vviiyMsZki/TL1kvsT4WMf9A=; b=sXdPzwYKvSbYyGnomLCizPGHywiFxGN/e5O+oa4fLdzbMlvofhJ5e6a2a63SGAZeiD f3ZlT1jCLo+e1S7dnB6y7EPwiVg0SAw8hq+fLWlejqMS9eANHtju5c0TitMsukADfdvz 59fpEJuTFiMzDArgsaqFhH2c5mYa8aXE/8jGB20JB9jPnzq1giifEs7yJnMYo4CE3jwj ZlDEs3u8DRQOnTVTtvAKq6bRenN/mUWKzPQxFODmG6oB8WU6E+LTNdLeGX0v7wz469GG 7Pxh+9SNruZS6VAM9GJGnAYT1uoRMIbRMZL3Zw4hTS+Bncraj+ci87TZEyB8Kn1zgUmE Nj9A== MIME-Version: 1.0 X-Received: by 10.140.101.105 with SMTP id t96mr11987979qge.9.1422008071898; Fri, 23 Jan 2015 02:14:31 -0800 (PST) Received: by 10.140.102.70 with HTTP; Fri, 23 Jan 2015 02:14:31 -0800 (PST) In-Reply-To: References: Date: Fri, 23 Jan 2015 15:44:31 +0530 Message-ID: Subject: Re: How to store weather station Details along with monitoring data efficiently? From: Srinivasa T N To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=001a11c16782fe4cf9050d4f0d6e X-Virus-Checked: Checked by ClamAV on apache.org --001a11c16782fe4cf9050d4f0d6e Content-Type: text/plain; charset=UTF-8 I forgot, my task at hand is to generate a report of all the weather station's along with the sum of temperatures measured each day. Regards, Seenu. On Fri, Jan 23, 2015 at 2:14 PM, Srinivasa T N wrote: > Hi All, > I was following the TimeSeries data modelling in PlanetCassandra by > Patrick McFadin. Regarding that, I had one query: > > If I need to store the weather station name also, should it be in the same > table, say: > > create table test (wea_id int, wea_name text, wea_add text, eventday > timeuuid, eventtime timeuuid, temp int, PRIMARY KEY ((wea_id, eventday), > eventtime) ); > > This forces me to enter the wea_name and wea_add for each new row, so how > to identify a new row has been created? Or is there any better mechanism > for modeling the above data? > > Regards, > Seenu. > --001a11c16782fe4cf9050d4f0d6e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I forgot, my task at hand is to generate a repor= t of all the weather station's along with the sum of temperatures measu= red each day.

Regards,
Seenu.

On Fri, Jan 23, 2015 at 2:14 PM= , Srinivasa T N <seenutn@gmail.com> wrote:
Hi All,
=C2=A0=C2=A0 I was following the TimeSeries data modelling in PlanetCassan= dra by Patrick McFadin.=C2=A0 Regarding that, I had one query:

If I need to store the weather station name also, should it be in the same= table, say:

create table test (wea_id int, wea_name text, wea= _add text, eventday timeuuid, eventtime timeuuid, temp int, PRIMARY KEY ((w= ea_id, eventday), eventtime) );

This forces me to enter the we= a_name and wea_add for each new row, so how to identify a new row has been = created?=C2=A0 Or is there any better mechanism for modeling the above data= ?

Regards,
Seenu.

--001a11c16782fe4cf9050d4f0d6e--