Allow starting multiple database connections at once
This commit is contained in:
parent
8640958af7
commit
c6366605a5
1 changed files with 4 additions and 0 deletions
|
|
@ -195,6 +195,8 @@ port. Also, the port used can be changed by passing the --port option.\n"
|
|||
#:destructor
|
||||
(lambda (conn)
|
||||
(close-postgresql-connection conn "web"))
|
||||
#:add-resources-parallelism
|
||||
(floor (/ postgresql-connections 2))
|
||||
#:default-max-waiters (floor (/ postgresql-connections 2))
|
||||
#:default-checkout-timeout (/ postgresql-statement-timeout
|
||||
1000)))
|
||||
|
|
@ -211,6 +213,8 @@ port. Also, the port used can be changed by passing the --port option.\n"
|
|||
#:destructor
|
||||
(lambda (conn)
|
||||
(close-postgresql-connection conn "web-reserved"))
|
||||
#:add-resources-parallelism
|
||||
(floor (/ postgresql-connections 2))
|
||||
#:default-max-waiters postgresql-connections
|
||||
#:default-checkout-timeout 6)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue