Is that possible add annotation BatchInsert just as Insert? So we do not copy too much code like "".
MyBatis version
3.x.x
Database vendor and version
Test case or example project
Steps to reproduce
Expected result
Actual result
Comment From: harawata
I don't think so.
It is just concatenating multiple insert statements and passing it to PreparedStatement#insert()
as a single big string which is inefficient. Plus, not all drivers support it.
Please see this FAQ entry for how to perform JDBC batch operation which is suitable for inserting/updating many rows.