stop connection pooling
oof, got "too many connections" from mysql, this is probably gonna be a scaling issue in time… for now, stop requesting a pool of 5, even on dev lolol, and just go with a single connection per instance
This commit is contained in:
parent
63b865ef7c
commit
05fe511bda
1 changed files with 1 additions and 2 deletions
|
@ -7,8 +7,7 @@ async function connectToDb() {
|
||||||
return globalDb;
|
return globalDb;
|
||||||
}
|
}
|
||||||
|
|
||||||
globalDb = await mysql.createPool({
|
globalDb = await mysql.createConnection({
|
||||||
connectionLimit: 5,
|
|
||||||
host: "impress.openneo.net",
|
host: "impress.openneo.net",
|
||||||
user: process.env["IMPRESS_MYSQL_USER"],
|
user: process.env["IMPRESS_MYSQL_USER"],
|
||||||
password: process.env["IMPRESS_MYSQL_PASSWORD"],
|
password: process.env["IMPRESS_MYSQL_PASSWORD"],
|
||||||
|
|
Loading…
Reference in a new issue