Skip to content

Commit 6e96c67

Browse files
committed
build(dbconfig, my.cnf): Update number of connection for db transaction to 1000 #16
1 parent 2875253 commit 6e96c67

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

server/.db/etc/my.cnf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
33

44
[mysqld]
5+
max_connections=1000
6+
57
#
68
# Remove leading # and set to the amount of RAM for the most im`port`ant data
79
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.

server/app/src/config/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config = {
77
password: process.env.DB_PSWORD,
88
database: process.env.DB_DATABASE,
99
port: Number(process.env.DB_PORT),
10-
connectionLimit: 10,
10+
connectionLimit: 1000,
1111
};
1212

1313
const mysqlPool = mysql.createPool(config);

0 commit comments

Comments
 (0)