This commit is contained in:
huangsimin 2020-03-05 14:38:21 +08:00
parent 08bc190512
commit 2750790d2e

View File

@ -44,6 +44,9 @@ func dbInsert(port int) {
attr := randomdata.Address()
taskid := i
tx.Exec("insert into user(name, age,level, task, attr, taskid) values(?, ?, ?, ?, ?, ?)", name, age, level, task, attr, taskid)
if i%10000 == 0 {
log.Println(name)
}
}
err = tx.Commit()