如何将传感器时间序列数据存储到 cassandra?
在这里,我检查了性能
在具有 10000 个时间序列数据数据的 cassandra 复合列族单行键中,查询:select * from deviceidcomposite where did='Dev001' limit 5000
情况1:
除(行键)
20120702105554 colname1=value
20120702105554 colname2=value
20120702105554 colname3=value
20120702105554 colname4=value
20120703105555 colname1=value
20120703105555 colname2=value
20120703105555 colname3=value
20120703105555 colname4=value
while we using cql3 to read single row key 5000 timeseries record it is taking nearly 3 min for 4 clumn
案例2:
标准柱族
diviceidcolumname1(row key)
20120703105552=value
20120703105553=value
20120703105554=value
20120703105555=value
..
..
diviceidcolumname2(row key)
20120703105552=value
20120703105553=value
20120703105554=value
20120703105555=value
..
..
diviceidcolumname4(row key)
20120703105552=value
20120703105553=value
20120703105554=value
20120703105555=value
..
..
diviceidcolumname4(row key)
20120703105552=value
20120703105553=value
20120703105554=value
20120703105555=value
..
..
(20120703105552->y/m/d/HH/MM/Sec)
using thrift api reading data perticular column name value or whole column name value
for one day(5000 timeseries data)
one month
it is comparing with cql less amount if time it's taking
nearly it taking 2 min
in this method reading single column name for one month is reading Very quick
哪一个是时间序列模型?
还有什么更好的方法!提高我的表现