Fetch the repository succeeded.
liteBatch是一个轻量级,高性能,高通用的批插框架。
1.0.1
1.1.0
1.2.0
1.2.1
1.2.2
也可以参考test工程的testUnit
try {
Random random = new Random();
Person person = null;
for (int i = 0; i < 100300; i++) {
person = new Person();
person.setAge(random.nextInt(100));
person.setAddress("XX马路"+random.nextInt(100)+"号");
person.setCompany("天天 向上科技有限公司");
person.setName("张三");
person.setCreateTime(new Date());
rowBatchListener.insertOneWithBatch(person);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
rowBatchListener.flush();
}
<bean id="rowBatchListener" class="com.thebeastshop.batch.spring.RowBatchListenerFactoryBean">
<property name="jdbcTemplate" ref="jdbcTemplate"/>
<property name="submitCapacity" value="5000"/>
<property name="beanClass" value="com.thebeastshop.batch.test.Person"/>
<!--<property name="syn" value="true"/>默认为false,推荐采用false,打开的话,则为同步模式-->
</bean>
在mysql数据库下,需要注意以下几点
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.