You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a web mapping framework which uses fastify-postgres in many of the data endpoints. Certain endpoints are hit very frequently (hundreds of times from a single user).
Would you recommend to connect, query and release?
Or would you recommend to connect and store the connection in a global and then just query, query, query.
Both methods are working fine for me but I am concerned the connect handshake is taking time while with the always connected solution I am worried what happens if a connection errs.
The text was updated successfully, but these errors were encountered:
I am writing a web mapping framework which uses fastify-postgres in many of the data endpoints. Certain endpoints are hit very frequently (hundreds of times from a single user).
Would you recommend to connect, query and release?
Or would you recommend to connect and store the connection in a global and then just query, query, query.
Both methods are working fine for me but I am concerned the connect handshake is taking time while with the always connected solution I am worried what happens if a connection errs.
The text was updated successfully, but these errors were encountered: