mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 13:17:42 +00:00
set max connections on pool
This commit is contained in:
parent
bb4b6f0e83
commit
9d0ff332c6
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ func NewRedisClient(ctx context.Context) (*redis.Client, error) {
|
|||
}
|
||||
|
||||
func NewDatabasePool(ctx context.Context) (*pgxpool.Pool, error) {
|
||||
url := fmt.Sprintf("%s?sslmode=require", os.Getenv("DATABASE_CONNECTION_POOL_URL"))
|
||||
url := fmt.Sprintf("%s?sslmode=require&pool_max_conns=32", os.Getenv("DATABASE_CONNECTION_POOL_URL"))
|
||||
config, err := pgxpool.ParseConfig(url)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue