baomidou / dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务
https://www.kancloud.cn/tracy5546/dynamic-datasource/2264611
Apache License 2.0
4.74k stars 1.19k forks source link

jdbc连接参数rewriteBatchedStatements对多数据源无效 #666

Closed weijie0 closed 2 months ago

weijie0 commented 2 months ago

Enviroment

JDK Version(required): 17 SpringBoot Version(required): 3 dynamic-datasource-spring-boot-starter Version(required): 4.3.1 druid Version(optional):

Describe what happened

mybatisplus>ServiceImpl>saveBatch方法执行慢,rewriteBatchedStatements不起作用,不使用多数据源生效

Expected Result:

可以批量操作

Actual Result: 批量执行慢

If there is an exception,or aop invalid,please attach the exception trace:

Just paste your stack trace here!

Steps to reproduce

weijie0 commented 2 months ago

@huayanYu 直接close是什么意思,如何解决呢,大佬

huayanYu commented 2 months ago

不知道,提问太潦草。 根据经验和多数据源无关