Skip to content

Processing Time increased after integrated with Spring Framework #631

Open
@shin779

Description

@shin779

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:

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions