for _,data := range Array {
stmt, err := db.Prepare(INSERT log SET a=?,b=?,c=?)
checkErr(err)
_, err = stmt.Exec(data.a,data.b,data.c)
checkErr(err)
}
This is the loop to add data into the table but the Go loop iterates faster than mysql can load entries into the table thus only the last few entries are populated, is there any way to load all the sql statements and populate the table at once?