database/sql: slower performance of sql driver with goroutines #24337
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?1.9
Does this issue reproduce with the latest release?
NA
What operating system and processor architecture are you using (
go env
)?processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : QEMU Virtual CPU version (cpu64-rhel6)
stepping : 3
microcode : 0x1
cpu MHz : 2099.998
cache size : 4096 KB
physical id : 1
siblings : 1
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl pni cx16 hypervisor lahf_lm abm
bogomips : 4199.99
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
OS: Cent OS 6
What did you do?
func ExecuteSqlQuery(sqlConn *sql.DB, strQuery string, params []interface{}) (map[int]map[string]string, error) {
}
What is the problem ?
I am executing 6 queries. The individual query is taking around 50-60 ms but when they are executed via goroutines the execution time is around 1 sec.
I expected these to be run under 60 ms too. Do I need to make any changes in the code ?
The text was updated successfully, but these errors were encountered: