We have been doing a lot of testing around JDBC connection performance and we have found a lot of interesting overheads in the various implementations.
Background
In our setup, we can have long geographical connections (ie. North America to Europe) which involve high latency. In these geographical distributed setups, we have to work very hard to minimize the roundtrips to the database.
In some setups, connection pooling isn’t possible and then a big pain point will be in connection creation. We use a database proxy in order to maintain a pool of database connections to avoid creating new TCP connections, but the JDBC drivers available all issue queries after connection creation, which still need to make a roundtrip to the MySQL server to resolve. Due to this our goal is to minimize the number of roundtrips to the DB during …
[Read more]