Replies: 2 comments
-
How to confirm whether SnowflakeConnectionPoolDataSource maintaining connection pool or not.Where do we configure the size of the connection pool and where do we see the pool of connection objects.Can you please help on this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
for anyone finding this: we don't pool the connections, you'll need to implement your own or use HikariCP or other popular pool managers. Some more details here: https://stackoverflow.com/questions/62639168/is-the-underlying-snowflake-driver-pooling-the-connections-here Closing this one out now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SnowflakeConnectionPoolDataSource snowflakePoolDataSource = new SnowflakeConnectionPoolDataSource();
snowflakePoolDataSource.setUrl(snowflakeUrl);
snowflakePoolDataSource.setUser(properties.getProperty("user"));
snowflakePoolDataSource.setPrivateKey(encryptedPrivateKey);
snowflakePoolDataSource.setRole(properties.getProperty("role"));
snowflakePoolDataSource.setDatabaseName(properties.getProperty("db"));
snowflakePoolDataSource.setSchema(properties.getProperty("schema"));
snowflakePoolDataSource.setWarehouse(properties.getProperty("warehouse"));
Beta Was this translation helpful? Give feedback.
All reactions