chore: preallocate slices where we have a good idea of requirements (#91596)
* chore: preallocate slices where we have a good idea of requirements * pr feedback
This commit is contained in:
@@ -866,7 +866,7 @@ func (statement *Statement) genUniqueSQL() []string {
|
||||
}
|
||||
|
||||
func (statement *Statement) genDelIndexSQL() []string {
|
||||
var sqls []string
|
||||
sqls := make([]string, 0, len(statement.RefTable.Indexes))
|
||||
tbName := statement.TableName()
|
||||
idxPrefixName := strings.Replace(tbName, `"`, "", -1)
|
||||
idxPrefixName = strings.Replace(idxPrefixName, `.`, "_", -1)
|
||||
|
||||
Reference in New Issue
Block a user