mybatis优化批量插入数据

Posted 江静澜清

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mybatis优化批量插入数据相关的知识,希望对你有一定的参考价值。

<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate" scope="prototype">
<constructor-arg name="sqlSessionFactory" ref="sqlSessionFactory" />
//配置此项10000条简单插入性能提高4-5倍 <constructor-arg name="executorType" value="BATCH"></constructor-arg> </bean>

  

以上是关于mybatis优化批量插入数据的主要内容,如果未能解决你的问题,请参考以下文章

MySQL批量SQL插入性能优化

mybatis优化批量插入数据

MySQL批量SQL插入性能优化

MySQL批量SQL插入性能优化详解

记录一次批量插入的优化历程

MySQL批量SQL插入各种性能优化