1.一分钟内mysql可以插入多少条记录?
2.如果使用mybatis,费率是多少?
配置是:
<insert id="insertBatch" >
insert into table(id, task_id, coupon_id,
user_id, expire_time, create_time,
update_time, is_deleted) values
<foreach collection="list" item="item" index="index" separator="," >
(#{item.id,jdbcType=INTEGER}, #{item.taskId,jdbcType=INTEGER}, #{item.couponId,jdbcType=INTEGER},
#{item.userId,jdbcType=INTEGER}, #{item.expireTime,jdbcType=TIMESTAMP}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.isDeleted,jdbcType=TINYINT})
</foreach>
</insert>
3.如何提高插入效率?