Slow Query in JdbcJobInstanceDao.getLastJobInstance() #4024
Labels
for: backport-to-4.3.x
Issues that will be back-ported to the 4.3.x line
in: core
related-to: performance
type: enhancement
Milestone
I use spring-batch-core 4.3.3.
Slow query has occured in FIND_LAST_JOB_INSTANCE_BY_JOB_NAME sql.
Executed query.
Currently I have about 10,000 rows.
My db socket timeout is 6 seconds and Exception occurred because the above query exceeded 6 seconds.
For MySql query performance, it seems that the query needs to be modified as follows.
solution 1
do not use 'IN' query
solution 2
In my case, I solved it by adding an index.
Thank you.
The text was updated successfully, but these errors were encountered: