log name
This commit is contained in:
parent
08bc190512
commit
2750790d2e
|
@ -44,6 +44,9 @@ func dbInsert(port int) {
|
||||||
attr := randomdata.Address()
|
attr := randomdata.Address()
|
||||||
taskid := i
|
taskid := i
|
||||||
tx.Exec("insert into user(name, age,level, task, attr, taskid) values(?, ?, ?, ?, ?, ?)", name, age, level, task, attr, taskid)
|
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()
|
err = tx.Commit()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user