We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/pingcap-incubator/tinysql/blob/bf13c144faf71010b2d77f754d6c81463b1ac6e8/tablecodec/tablecodec.go#L88
Why not take the length of idxID into account when allocating the capacity of key in the EncodeIndexSeekKey function, like the following:
idxID
key
EncodeIndexSeekKey
key := make([]byte, 0, prefixLen+idLen+len(encodedValue))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/pingcap-incubator/tinysql/blob/bf13c144faf71010b2d77f754d6c81463b1ac6e8/tablecodec/tablecodec.go#L88
Why not take the length of
idxID
into account when allocating the capacity ofkey
in theEncodeIndexSeekKey
function, like the following:The text was updated successfully, but these errors were encountered: