Processing at time of Pgxpool acquire at time load request

Skip to first unread message

Reeturaj Sahoo

Mar 21, 2023, 9:20:15 AMMar 21
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
0 new messages