新人,项目使用的版本为1.b.53
插入的数据量为百万级
@Table("TestInsert")
public class TestInsert {
@Id
private long id;
@Column
private String value;
public TestInsert(){}
public TestInsert(String value){
this.value = value;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
调用fastInsert的代码如下
@Autowired
private TransactionApi transactionApi;
@Override
public void fastInsert(final List<TestInsert> testInsertList) {
transactionApi.runInTransaction(new Executable<Boolean>() {
@Override
public Boolean exec() {
dao.fastInsert(testInsertList);
return true;
}
});
}
执行时间超长,大神能帮忙看下问题吗