tidb has user defined variables tidb_batch_insert, how to set variable per connection? right now i exec db.Exec("set @@session.tidb_batch_insert=1") before a insert expression. This is to wasty, how to set variable per connection?

The document you expected this should be explained

Expected answer

Comment From: li-jin-gou

https://gorm.io/zh_CN/docs/sql_builder.html#Connection @wydszqd