Re: [go-nuts] Acquiring database new connections slow using pgx and pq

2019-06-07 Thread Ian Lance Taylor
On Fri, Jun 7, 2019 at 11:55 AM wrote: > > Yes, that's right. But I suspect that this is due to some > blocking/semaphoring in a core Go library. I don't know what the problem is here, but I would say that that is very unlikely. The Go standard library could always use more optimization, but it

Re: [go-nuts] Acquiring database new connections slow using pgx and pq

2019-06-07 Thread nafana
Yes, that's right. But I suspect that this is due to some blocking/semaphoring in a core Go library. -- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed.  If you have received this email in er

Re: [go-nuts] Acquiring database new connections slow using pgx and pq

2019-06-07 Thread Michael Jones
Are you saying that it takes 7 seconds to make a connection? On Thu, Jun 6, 2019 at 5:26 PM wrote: > I noticed that when executing concurrent db queries against my Postgres > db, the response time gets slower linearly with the number of goroutines > (at the order of O(N)). The first connection o