Skip to content

Commit

Permalink
Increased connection pool size to accomodate traffic spikes when an u…
Browse files Browse the repository at this point in the history
…pdate is

published.
  • Loading branch information
mike182uk committed Aug 14, 2024
1 parent 4a1e63f commit 7b1fe86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const client = Knex({
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DATABASE,
},
pool: {
min: 0,
max: 100,
}
});

await client.schema.createTableIfNotExists('key_value', function (table) {
Expand Down

0 comments on commit 7b1fe86

Please sign in to comment.