We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d702c72 commit 16d1453Copy full SHA for 16d1453
lib/connection.js
@@ -52,7 +52,7 @@ function Connection (opts)
52
this._paused_packets = new Queue();
53
54
this._statements = LRU({
55
- max: 1000,
+ max: this.config.maxPreparedStatements,
56
dispose: function (key, statement) { statement.close(); }
57
});
58
lib/connection_config.js
@@ -70,6 +70,7 @@ function ConnectionConfig (options) {
70
options.flags || '');
71
72
this.connectAttributes = options.connectAttributes;
73
+ this.maxPreparedStatements = options.maxPreparedStatements || 16000;
74
}
75
76
ConnectionConfig.mergeFlags = function (default_flags, user_flags) {
0 commit comments