zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.34k stars 3.96k forks source link

how can i insert manay records during a transaction? #4433

Open jinkaz opened 1 month ago

jinkaz commented 1 month ago

for example,there are two models ,as creating ,when inserting action happen there maybe one of models insert a few records. but i found ExecCtx method did't support bulk inserts.sqlx.NewBulkInserter that i think what is difficult to be compatible to ExecCtx . maybe i's missed something userful .but rightnow i need some tips and help.thank u