The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

JDBC Connection Pool



Please provide an example of how to initialise/setup a Vertica Connection Pool using JDBC/Java.


I would like to setup a Connection Pool (e.g. 10 connections) and run each connection in Parallal, executing multiple queries.


I see the following available in JDBC - can you provide an example on how to use it?



I've currently setup a single connection, but would like to use ConnectionPoolDataSource:


Connection conn; 

Properties myProp = new Properties();

myProp.put("user", "n");

myProp.put("password", "t");

myProp.put("loginTimeout", "60");

myProp.put("binaryBatchInsert", "true");


conn = DriverManager.getConnection("jdbc:vertica:....etc...",myProp);





Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file