about Changing the size of a VARCHAR field #34478
-
Hello I’m not sure if I missed it in the documentation, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
max_length of a varchar field cannot be changed once the collection is created. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. |
Beta Was this translation helpful? Give feedback.
-
/assign @PowderLi |
Beta Was this translation helpful? Give feedback.
Actually, the max_length value affects the internal logic of milvus (such as determining the size of insert buffer).
In ths source code of pkg/util/typeutil/schema.go
max_length is calculated by these methods. So, different values will affect the internal behavior of milvus. From the source code, I didn't see it affects search/query performance.
An accurate max_length is welcome, 65535 is also ok if users don't like the limitation.
milvus/pkg/util/typeutil/schema.go
Line 105 in 9b37d3f