Skip to content

Commit 1f4e73b

Browse files
committed
[ci skip] maxPreparedStatements docs
1 parent 1b8aed2 commit 1f4e73b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

documentation/Prepared-Statements.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ connection.prepare('select ? + ? as tests', function(err, statement) {
3232
});
3333
```
3434
Note that you should not use statement after connection reset (`changeUser()` or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.
35+
36+
# Configuration
37+
38+
`maxPreparedStatements` : We keep the cached statements in a [lru-cache](https://github.com/isaacs/node-lru-cache). Default size is `16000` but you can use this option to override it. Any statements that are dropped from cache will be `closed`.

0 commit comments

Comments
 (0)