会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
flash-boy
导航
博客园
首页
新随笔
联系
订阅
管理
公告
Mybatis都有哪些Executor执行器?区别是什么?
三种,SimpleExecutor,ReuseExecutor,BatchExecutor.
SimpleExecutor: 每执行一次update/select,开启一个statement对象,用完立刻关闭。
ReuseExecutor:执行update/select,以sql为key查找,存在就用,不存在就创建,不关闭,保存在map中。
BatchExecutor:执行update,多个sql都添加到批处理中,等待统一执行,缓存了多个Statement对象。
posted on
2022-09-02 20:33
flash-boy
阅读(
99
) 评论(
0
)
收藏
举报
刷新页面
返回顶部