Max length of varchar / text in cassandra

2019-08-12 16:03发布

问题:

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