Max length of varchar / text in cassandra

Deadly 提交于 2019-12-11 13:48:20

问题


I am trying to find the answer to a simple question. Let say I have a table which I store content in it. The content is just a string. I am trying to find what is my max length for this specific one? I was reading that "text" type is just an alias to varchar. Is varchar length only 255 or it can be more?


回答1:


You can use TEXT column in your database ( about 64KB characters).

As you know String in java has 2^31-1 characters



来源:https://stackoverflow.com/questions/37290391/max-length-of-varchar-text-in-cassandra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!