Open
Description
MyBatis version
3.5.2 - 3.5.8
MyBatis Spring Adapter version
2.0.1 - 2.0.5
Database vendor and version
H2 1.4.200
IBM DB2 10.5 LUW
Test case or example project
https://github.com/shin779/DBTestMyBatisSpringWithTxMgr
Steps to reproduce
Perform simple select query (e.g. select 1 from dual
) in a massive number (e.g. 10000 times) inside a transation which managed by Spring via mybatis-spring
Expected result
The process time of 1st 1000 queries should similar to 2, 3...nth 1000 queries
(e.g. if 1st to 1000th queries takes 5sec, then 5001th to 6000th should take ~5 sec as well)
Actual result
Process time keep increase in direct proportion unless keep commit / rollbak with certain number: