Iwao AVE!
Iwao AVE!
@whq4123 , Are you referring to the [TransactionalCache#commit()](https://github.com/mybatis/mybatis-3/blob/0965d17ded2e646cfaf1687681034fdce7d3fcc7/src/main/java/org/apache/ibatis/cache/decorators/TransactionalCache.java#L95-L101) method? That method is used by other statements than SELECT and changing the implementation could break backward compatibility (but I am not...
Hello @liuyueve , I couldn't understand the first part of your comment. Please provide something executable (i.e. a [test case](https://github.com/mybatis/mybatis-3/wiki/Unit-Test). or [demo project](https://github.com/harawata/mybatis-issues)). I'll take a look at the PR...
@liuyueve , The select statement in your test does not have `@Options(flushCache = Options.FlushCachePolicy.TRUE)`, so it is a different issue than this one. I added a comment on #2041 .
@liuyueve , The symptom looks similar, but your usage (i.e. scenario involving non-select statements) is much more complicated and it is not easy to solve it without breaking backward compatibility,...
@xbcrh , No, it is not right. The purpose of `TransactionalCache` is to hold cache changes until commit in case the transaction is rolled back.
No answer usually means the question is difficult to answer. :) I could be wrong, but you seem to try to use batch executor for a purpose that is not...
Hello @kvasnickakb , Could you post the entire implementation of the plugin?
Thank you for the project @kvasnickakb ! So, the fundamental issue here is that plugins cannot intercept `flushStatements()` when it's not invoked directly, is that correct? Then I would look...
> In my opinion, if you want to keep using java proxies in mybatis, there is no simple way how to intercept Execution.flushStatements in batch mode. I pretty much agree...
@kvasnickakb , I don't remember the details about that PR. :D Let me take another look.