From 2750790d2eef30fc2ddec709d9348a844b646f49 Mon Sep 17 00:00:00 2001 From: huangsimin Date: Thu, 5 Mar 2020 14:38:21 +0800 Subject: [PATCH] log name --- insert_running.go | 3 +++ 1 file changed, 3 insertions(+) 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()