Skip to content

Commit c790b01

Browse files
thomasgauvinsdnts
authored andcommitted
Update use-node-postgres-to-make-query.mdx (cloudflare#23120)
1 parent afb6f93 commit c790b01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/partials/hyperdrive/use-node-postgres-to-make-query.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,9 @@ export default {
6262
},
6363
};
6464
```
65+
66+
:::note
67+
68+
If you expect to be making multiple parallel database queries within a single Worker invocation, consider using a [connection pool (`pg.Pool`)](https://node-postgres.com/apis/pool) to allow for parallel queries. If doing so, set the max connections of the connection pool to 5 connections. This ensures that the connection pool fits within Workers' concurrent open connections limit of 6, which affect TCP connections that database drivers use.
69+
70+
:::

0 commit comments

Comments
 (0)