Processing at time of Pgxpool acquire at time load request

45 views
Skip to first unread message

Reeturaj Sahoo

unread,
Mar 21, 2023, 9:20:15 AM3/21/23
to golang-nuts
Hello ,

pgxpool Acquire  processing taking more time and did not return anything  when more request come to server in less request its working fine .

For using Acquire we using below code

ctx := context.Background()
intconn, err := s.Conn.Acquire(ctx)
if err != nil {
fmt.Println("Txn id in request for debit::", req.GetTxnid(), "Error in conn acquire in insert :", err)
}.


Is there need to chnage anything or am i using context in correct way ??
Reply all
Reply to author
Forward
0 new messages