I've a problem when creating a batch in JAVA, this is that i might have to call a certain connection every second to process one block of rows, reaching the limit of the pool size.
How can i handle lots of connections without increase pool size ?
using (var connection = ExternalDBConnectionManager.getConnection()){
using (var prepStatement = connection.prepareStatement(queryToExecute)){
...
}
}
This function is called every 100 rows or more, but for an example i'd like to run this every row (i.e 500 rows, one call for each) - (this means call this function 500 times with the same connection)