You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying a default executor type of BATCH, it is not used if cacheEnabled is true, and instead creates a cached executor.
To me this seems like a bug. If they are mutually exclusive, there should just be an ExecutorType.CACHED, because it took me hours to figure this out. I finally dived into the code, not thinking it would be a mybatis code problem. I should have done it earlier, but my claim stands, I consider that a bug.
The text was updated successfully, but these errors were encountered:
TrentonAdams
changed the title
batch mode enabled but not performant
cacheEnabled bypasses BATCH mode
Feb 13, 2025
We need the details about the problem you are experiencing.
Please provide a test case [1] or small demo project [2].
We basically need to understand both 1) what you expect and 2) what actually happens.
cacheEnabled is true by default
When specifying a default executor type of BATCH, it is not used if cacheEnabled is true, and instead creates a cached executor.
To me this seems like a bug. If they are mutually exclusive, there should just be an ExecutorType.CACHED, because it took me hours to figure this out. I finally dived into the code, not thinking it would be a mybatis code problem. I should have done it earlier, but my claim stands, I consider that a bug.
The text was updated successfully, but these errors were encountered: