Replies: 1 comment 1 reply
-
The connection pool is handled by Sequel, not specific to any adapter/driver. The connection pool size is the current number of connections in the pool. It isn't the maximum size. Connections are created as needed until the maximum size is reached. The default connection pool maximum size is 4. Since increasing the :max_connections option doesn't help, there is probably something else wrong, and you should post a minimal self contained reproducible example showing the problem. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using sequel gem to connect to snowflake using snowflake's odbc driver.
DB = Sequel.odbc CONNECTION_PARAMETERS
Where CONNECTION_PARAMETERS contains the following parameters required by the odbc driver: driver, server, warehouse, database, schema, uid, pwd
DB.pool.size returns 1 - and I believe that the number of connections available in the pool is truly and only one because this has resulted in Sequel::PoolTimeout errors under heavy load. This issue goes away if I create a new DB connection object each time I need to make a query (and I make sure to close the connection after each use).
The workaround works but I'd rather have a proper connection pool set up. Setting "max_connections" in the parameters to a number greater than 1 doesn't change anything. Not sure how to change the pool size using sequel with the snowflake odbc connection parameters.
Is the connection pool parameter handled by sequel gem? Or this specific to the snowflake odbc driver? Any ideas how to set the connection pool size?
Beta Was this translation helpful? Give feedback.
All reactions