From 977246970647f32931ca10ca1930cbe30bc5b966 Mon Sep 17 00:00:00 2001 From: hmarf Date: Mon, 4 Nov 2019 13:33:24 +0900 Subject: [PATCH] goroutine bulk insert --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 69c272b..63b1fd1 100644 --- a/main.go +++ b/main.go @@ -67,7 +67,7 @@ func main() { values = append(values, DBStruct{Name: name, Value: value}) if len(values) > 10 { - BulkInsert(values, db) + go BulkInsert(values, db) values = nil }