gpt4 book ai didi

java - Cassandra DataStax 插入的最大尺寸是多少

转载 作者:行者123 更新时间:2023-11-30 11:19:11 25 4
gpt4 key购买 nike

当我尝试使用 Java DataStax 驱动程序发送大型 map 时,我得到了

Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: Not enough bytes to read a map
at com.datastax.driver.core.Responses$Error.asException(Responses.java:96)
at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:108)
at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:228)
at com.datastax.driver.core.RequestHandler.onSet(RequestHandler.java:354)
at com.datastax.driver.core.Connection$Dispatcher.messageReceived(Connection.java:571)
...

我在这里存储一个 map ,其中一个值为近似值。 10 万个字符。

这些插入的大小似乎有限制,但我找不到限制是什么,是否有记录?

它是可配置的吗?

最佳答案

我发现自己在这里达到了哪个实际限制:

来自 http://www.datastax.com/documentation/cql/3.1/cql/cql_using/use_collections_c.html :

Cassandra includes collection types that provide an improved way of handling tasks, such as building multiple email address capability into tables. Observe the following limitations of collections:

The maximum size of an item in a collection is 64K.

错误信息并不理想,至少我不清楚实际问题是什么!

关于java - Cassandra DataStax 插入的最大尺寸是多少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23360941/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com