Skip to content

Commit

Permalink
Increased connection pool size
Browse files Browse the repository at this point in the history
no refs

Increased connection pool size to accommodate traffic spikes when an update
is published
  • Loading branch information
mike182uk committed Aug 14, 2024
1 parent 4a1e63f commit c3e6a34
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 c3e6a34

Please sign in to comment.