使用Cassandra进行时间序列数据存储 [英] Using Cassandra for time-series data storage

查看:720
本文介绍了使用Cassandra进行时间序列数据存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Cassandra的新手,现在可以根据我们的需求来评估它 - 我需要处理一个动态存储,它保存来自许多来源的信号数据。每个源与其元数据值一起提供连续的信号数据流(时间 - 值序列)。
什么是最好的数据模型,即使只是作为一个起点,来处理这种数据?是否可以使用CQL作为向量(而不是逐个样本)插入数据?

I'm a newbie to Cassandra and now evaluate it for our needs here - I need to handle a dynamic storage which holds a signal data from many sources. Each source provides, together with it's meta-data values, a continuous stream of signal data (time-value series). What is the best data-model, even just as a starting-point, to handle this kind of data? Is it possible to insert the data as a vector (and not sample by sample) using CQL? Any link with concrete examples will be highly appreciated!

感谢

更新:

感谢您的宝贵意见!我看了几个例子,方法很清楚。仍然有两个问题:

Thanks a lot for the helpful comments! I looked at several examples and the method is clear. Still I have two issues:


  • 我在cqlsh看到时间戳值耦合在单独的行,而不是在一行实例,如果我在同一个键中插入3对时间戳值,我希望在查询1行上有3个时间戳列。

  • 可以INSERT一个值的向量(而不是重复的INSERT)?

感谢

推荐答案


是否可以插入一个值向量(而不是重复的INSERT)?

Is it possible to INSERT a vector of values (and not repeated INSERTs)?

我希望你正在尝试使用批处理执行。这是一个很好的起点。
http://docs.datastax.com/en/cql/3.1/cql/cql_reference/batch_r.html

I hope you are trying to use Batch execution. This is your good starting point. http://docs.datastax.com/en/cql/3.1/cql/cql_reference/batch_r.html

或者你可能正在寻找集合类型,请注意,他们有自己的限制。
https://docs.datastax.com/en/cql/3.0/cql/cql_using/use_collections_c.html

Or you might be looking for Collection Type. Please note that they have their own limitations. https://docs.datastax.com/en/cql/3.0/cql/cql_using/use_collections_c.html

As

希望它有帮助!

这篇关于使用Cassandra进行时间序列数据存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆