you just call it in a transaction.
what you are worried about is that two statements use two connections. The statements you execute in a transaction are all under one connection
.
Previous: What are the usage scenarios of using filesort and using temporary?
Next: Xpath extracts intermediate content from one node to the next
mybatis-3.4.4.jar org.apache.ibatis.builder.xml.XMLMapperBuilder line:132 private void buildStatementFromContext(List<XNode> list, String requiredDatabaseId) { for (XNode context : list) { final XMLStatementBuilder statementParse...