New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sharding-jdbc 5.1.2 startup very slow #18653
Comments
yes, rolling back to 5.1.1 is very fast |
What is your configuration and database type? |
spring:
shardingsphere:
datasource:
names: node1,node2
node1:
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://xxxxxxx:3307/oooo?characterEncoding=utf8&useSSL=false&autoReconnect=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
password: vvvv
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: ccc1
maximum-pool-size: 25
max-lifetime: 900000
validation-timeout: 2000
idle-timeout: 60000
minimum-idle: 15
node2:
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://oooooo:3308/oooo?characterEncoding=utf8&useSSL=false&autoReconnect=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
password: cccccc
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: vvvvv2
maximum-pool-size: 25
max-lifetime: 900000
validation-timeout: 2000
idle-timeout: 60000
minimum-idle: 15
rules:
readwrite-splitting:
data-sources:
oooo:
type: Static
props:
write-data-source-name: node1
read-data-source-names: node2
load-balancer-name: random
load-balancers:
random:
type: RANDOM |
What if you could exclude JOOQ or specify a later version of JOOQ under JDK11+? New perspectives from #18691 . |
upgrade jooq version from or exclude jooq dependence , start application both perform well ✔ don't know if there are other effects @linghengqian |
|
yes , version is exclude
previous change to version |
|
I have the same problem. It starts slowly after upgrading from 5.1.1 to 5.1.2 |
It looks like JooQ problem. I'd like to resolve this problem. |
@terrymanu After I checked locally, I noticed that |
@zoujianchao Hi, could you have a look for spring boot starter? |
If new issue, is it better to create a new one? |
A new SpringBoot Starter related issue is located at #18889 . |
@boot-vue do u reslove the promblem? |
At the heart of this issue is actually a documentation issue, and I think this issue can be closed. |
🎃🎃 |
sharding-jdbc
:5.1.2
tables
:200+
same config, with version
5.1.0
, application startup very fastchange to version
5.1.2
, application start very slow......The text was updated successfully, but these errors were encountered: