0

如果收集数据超过 64K,是否有替代方案。

根据卡桑德拉文档

Observe the following limitations of collections:

The maximum size of an item in a collection is 64K.
Keep collections small to prevent delays during querying because Cassandra reads a collection in its entirety. The collection is not paged internally.

As discussed earlier, collections are designed to store only a small amount of data.
Never insert more than 64K items in a collection.

If you insert more than 64K items into a collection, only 64K of them will be queryable, resulting in data loss.
4

1 回答 1

0

在您的情况下,我建议您不要使用 C* 集合。请改用分区键集群列的组合。所以你没有64K的限制。

链接:http ://www.datastax.com/documentation/cql/3.0/cql/ddl/ddl_compound_keys_c.html

于 2014-12-01T16:35:45.353 回答