1

We are making the move from MySQL to a globally-distributed, NoSQL solution due to hitting the performance ceiling. One consideration is Cassandra.

Our rows are small (6 fields, ~100bytes per row), but we need to store 250 million of them. At most, our searches will return 1000 rows at a time, based on 2 fields.

I am reading a lot about wide rows, but not sure our data model will work.

Is Cassandra suitable for storing this type of data?

4

1 回答 1

1

我认为如果您以将数据存储为宽行的方式设计数据会更好。

使用新的 CQL3 功能,您仍然可以将其视为小行,但 Cassandra 会将其组织为宽行。我不认为遍历行是最有效的方法。我发现这篇文章对这个主题非常有解释性:http ://www.datastax.com/dev/blog/thrift-to-cql3 。

也许您可以对您的数据模型或多或少的外观有所了解?在处理 Cassandra 时,您必须首先考虑您希望如何查询数据,并且经常进行非规范化。

于 2013-08-15T14:56:32.323 回答