Understand connection pooling and security
mainConnection Pooling
All database connections use connection pooling to optimize performance:
- SQLite: Uses a single persistent connection.
- SQL Server: Default pool of 5 connections.
- PostgreSQL: Default pool of 10 connections.
Connection Security Best Practices
- SQL Server: In production, use
--trustServerCertificate falseand ensure proper SSL certificates are installed on the server. - PostgreSQL: Use
--ssl trueand ensure the server is configured for SSL connections. - Credentials: Use environment variables instead of command-line arguments to prevent credential leakage in process lists.
- Permissions: Store your Claude Desktop configuration file with appropriate file system permissions.