CQL3 中的集合是否有某些限制? [英] Does collections in CQL3 have certain limits?

查看:25
本文介绍了CQL3 中的集合是否有某些限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为在 CQL3 中有两种支持宽行的方法..一种是使用复合键,另一种是使用 Map、List 和 Set 等集合.复合键方法可以有数百万列(转置为行).这解决了我们的一些用例.

但是,如果我们使用集合,我想知道集合可以存储一定数量/数量的数据是否有限制(就像之前的 Thrift C* 支持最多 20 亿列连续)

解决方案

除了性能问题之外,还有一个协议问题,它限制了您可以访问的项目数量为 65536.

http://mail-archives.apache.org/mod_mbox/cassandra-user/201305.mbox/%3CCAENxBwx6pcSA=cWn=dKW_52K5odw5F3Xigj-zn_4BwFth+4ruA@mail.gmail.com<%3E

As there are two ways to support wide rows in CQL3..One is to use composite keys and another is to use collections like Map, List and Set. The composite keys method can have millions of columns (transposed to rows).. This is solving some of our use cases.

However, if we use collections, I want to know if there is a limit that the collections can store a certain number/amount of data (Like earlier with Thrift C* supports up-to 2 billion columns in a row)

解决方案

Apart from the performance issue, there is a protocol issue which limits the number of items you can access to 65536.

http://mail-archives.apache.org/mod_mbox/cassandra-user/201305.mbox/%3CCAENxBwx6pcSA=cWn=dKW_52K5odw5F3Xigj-zn_4BwFth+4ruA@mail.gmail.com%3E

这篇关于CQL3 中的集合是否有某些限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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