## Enhancement See: https://github.com/pingcap/tidb/blob/a48a4a28a45dd40860c5a16f15502667772658e9/pkg/table/tables/tables.go#L1109 The `indexVals` is assigned using `:=` that makes it a new variable and shadows the outside declaration.  `writeBufs.IndexValsBuf` is always `nil` and the `[]types.Datum` will be allocated every time.