diff --git a/insert_running.go b/insert_running.go index 1a6abeb..37c72d1 100644 --- a/insert_running.go +++ b/insert_running.go @@ -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()