Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void init(Configurations config) {
TransactionFactory transactionFactory = new JdbcTransactionFactory();
Environment environment = new Environment("develop", transactionFactory, dataSource);
Configuration configuration = new Configuration(environment);
configuration.setDefaultExecutorType(org.apache.ibatis.session.ExecutorType.BATCH);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, this configuration only affects the statement object usage, it will not affect the transaction scope.

So I don't think we can solve the lock issue with this change.

configuration.addMapper(TableMetaMapper.class);
configuration.addMapper(OptimizingMapper.class);
configuration.addMapper(CatalogMetaMapper.class);
Expand Down