Add Exception handling, set min pool size to zero

This commit is contained in:
2025-04-24 23:42:22 -04:00
parent dbd38cdd0d
commit f170f0f20a
9 changed files with 505 additions and 312 deletions

View File

@@ -12,7 +12,7 @@ namespace MarketData.Utils
/// <summary>SQlUtils - SQL utility class</summary>
public class SqlUtils
{
private static readonly int MIN_POOL_SIZE=10;
private static readonly int MIN_POOL_SIZE=0; // this will allow the connection pool to shrink for better utilization
private static readonly int MAX_POOL_SIZE=100;
public static readonly int COMMAND_TIMEOUT=300; // seconds
private static readonly int CONNECTION_TIMEOUT=300; // seconds