Re: Need help with simple schema for time-series

2016-08-26 Thread Peter Figliozzi
e | date | time | data > +++-- >test | 2016-03-04 | 13:00:00.0 |2 >test | 2016-03-06 | 12:00:00.0 |4 > > (2 rows) > > > > On Fri, Aug 26, 2016 at 10:02 PM Peter Figliozzi

Re: Need help with simple schema for time-series

2016-08-26 Thread Peter Figliozzi
d you can query on the > range. > > CREATE TABLE mytable ( > sensorname text, > reading_time timestamp, > data MAP<text, int>, > PRIMARY KEY (sensorname, reading_time) > ); > > > > On Fri, Aug 26, 2016 at 8:17 PM Peter Figliozzi <pete.fi

Need help with simple schema for time-series

2016-08-26 Thread Peter Figliozzi
I have data from many sensors as time-series: - Sensor name - Date - Time - value I want to query windows of both date and time. For example, 8am - 9am from Aug. 1st to Aug 10th. Here's what I did: CREATE TABLE mykeyspace.mytable ( sensorname text, date date, time