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
This improves performance, as creating a whole new connection for each query can be an expensive operation.
69
+
With pools, you can keep the connections open to be re-used when requested (`const client = dbPool.connect()`). So one of the active connections will be used instead of creating a new one.
70
+
71
+
The number of pools is up to you, but I feel a pool of 20 is good for small applications. Though remember this can differ based on how active your application is. Increase or decrease where necessary.
72
+
32
73
## API
33
74
34
75
`deno-postgres` follows `node-postgres` API to make transition for Node devs as easy as possible.
@@ -83,3 +124,16 @@ const result = await client.query({
0 commit comments