Skip to content

Commit

Permalink
chore: adjust connection pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Jan 28, 2025
1 parent 4e30350 commit d778226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions govtool/backend/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ createOptimizedConnectionPool :: BS.ByteString -> IO (Pool Connection)
createOptimizedConnectionPool connectionString = createPool
(connectPostgreSQL connectionString) -- Connection creation function
close -- Connection destruction function
16 -- Number of stripes (sub-pools)
30 -- Idle timeout (seconds)
50 -- Maximum number of connections per stripe
1 -- Idle timeout (seconds)
2 -- Number of stripes (sub-pools)
60 -- Maximum number of connections per stripe

proxyAPI :: Proxy (VVAApi :<|> SwaggerAPI)
proxyAPI = Proxy
Expand Down

0 comments on commit d778226

Please sign in to comment.