Skip to content

Commit

Permalink
Adjust connection pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 11, 2024
1 parent 8568bd2 commit 7dc6e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GlobalRankLookupCache/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static MySqlConnection GetDatabaseConnection()
string host = (Environment.GetEnvironmentVariable("DB_HOST") ?? "localhost");
string user = (Environment.GetEnvironmentVariable("DB_USER") ?? "root");

var connection = new MySqlConnection($"Server={host};Database=osu;User ID={user};ConnectionTimeout=1;ConnectionReset=false;Pooling=true;");
var connection = new MySqlConnection($"Server={host};Database=osu;User ID={user};ConnectionReset=false;Pooling=true;Max Pool Size=100;Connection Timeout=30;Connection Lifetime=300;");
connection.Open();
return connection;
}
Expand Down

0 comments on commit 7dc6e33

Please sign in to comment.