You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by "zhoujinsong (via GitHub)" <gi...@apache.org> on 2024/09/02 07:34:56 UTC
Re: [PR] [AMORO-3112]Use the same mysql transaction to handle multiple database operations [amoro]
zhoujinsong commented on code in PR #3114:
URL: https://github.com/apache/amoro/pull/3114#discussion_r1740454530
##########
amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/persistence/SqlSessionFactoryProvider.java:
##########
@@ -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);
Review Comment:
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org