7

springboot 里面增删改查怎么用多线程写,持久层是mybatis

 2 years ago
source link: https://www.oschina.net/question/3038423_2324907
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

springboot 里面增删改查怎么用多线程写,持久层是mybatis

魔力猫
前天 17:09

问题是有什么意义呢? 

vbn19456
前天 17:20

excel上传插入太慢了,差不多10秒,所以想试试多线程插入会不会好点

zcGoo
昨天 10:24
正常情况下你表格有多少数据要导入啊,怎么会要10秒,是不是数据库设计的不合理,看看是不是索引比较多。
vbn19456
前天 18:15
回复 @魔力猫 : 不走网络,就在插入这里耗时10秒
魔力猫
前天 17:47
确认一下数据库类型、版本,批量插入开关。你插入数据集数据多少?服务器到数据库带宽多少?确认瓶颈真的在插入数据库而不是别的地方吗?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK