flash-boy

导航

 

 

三种,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)    收藏  举报