Skip to content

Commit 0c4e41c

Browse files
committed
fix: remove outdated default pool config
1 parent b5e46e7 commit 0c4e41c

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

node.js/databases.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,7 @@ This method is called automatically by the framework on the first query, so **yo
5151

5252
### Pool
5353

54-
Instead of opening and closing a database connection for every request, we use a pool to reuse connections.
55-
By default, the following [pool configuration](https://www.npmjs.com/package/generic-pool) is used:
56-
57-
```json
58-
{
59-
"acquireTimeoutMillis": <if (NODE_ENV='production') 1000 else 10000>,
60-
"evictionRunIntervalMillis": <2 * (idleTimeoutMillis || softIdleTimeoutMillis || 30000)>,
61-
"min": 0,
62-
"max": 100,
63-
"numTestsPerEvictionRun": <(max - min) / 3>,
64-
"softIdleTimeoutMillis": 30000,
65-
"idleTimeoutMillis": 30000,
66-
"testOnBorrow": true,
67-
"fifo": false
68-
}
69-
```
70-
71-
::: warning
72-
This default pool configuration does not apply to `@cap-js` database implementations.
73-
:::
54+
Instead of opening and closing a database connection for every request, we use a [`generic-pool`](https://www.npmjs.com/package/generic-pool)-based pool to reuse connections.
7455

7556
The _generic-pool_ has a built-in pool evictor, which inspects idle database connections in the pool and destroys them if they are too old.
7657

0 commit comments

Comments
 (0)