因為我一直想用Cassandra來存儲我們的數(shù)字電表中的數(shù)據(jù),按照之前的文章(getting-started-time-series-data-modeling )的介紹,Cassandra真的和適合用于存儲time series類型的數(shù)據(jù),那么我就想要弄清楚,對于下面這張表
CREATE TABLE temperature ( weatherstation_id text, event_time timestamp, temperature text,PRIMARY KEY (weatherstation_id,event_time));
在插入了下面這些數(shù)據(jù)之后,他內(nèi)部究竟是怎么存儲的?
INSERT INTO temperature(weatherstation_id,event_time,temperature) VALUES ('1234ABCD','2013-04-03 07:01:00','72F');INSERT INTO temperature(weatherstation_id,event_time,temperature) VALUES ('1234ABCD','2013-04-03 07:02:00','73F');INSERT INTO temperature(weatherstation_id,event_time,temperature) VALUES ('1234ABCD','2013-04-03 07:03:00','73F');INSERT INTO temperature(weatherstation_id,event_time,temperature) VALUES ('1234ABCD','2013-04-03 07:04:00','74F');
如果按