Skip to content

about Changing the size of a VARCHAR field #34478

Closed Answered by yhmo
ian-lss asked this question in Q&A and General discussion
Discussion options

You must be logged in to vote

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

  • EstimateSizePerRecord is used to determine the size of the insert buffer
  • EstimateMaxSizePerRecord is used to determine the size of the read buffer of bulkinsert

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.

func estimateSizeBy(schema *sch…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@ian-lss
Comment options

@yhmo
Comment options

@ian-lss
Comment options

@yhmo
Comment options

Answer selected by ian-lss
@ian-lss
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants