Spring Boot 3s Datasource autoconfiguration backs off when R2DBC is present.
Therefore a Datasource has to constructed explicitly.
And other autoconfigurations which would collide with JDBC had to be disabled.
TODOs:
- Review interaction with the JDBC auto-configuration
- Wait for tcp protocol of H2 to be supported
- Wait for Postgres to accept credentialless connections (see [0])
[0] https://github.com/r2dbc/r2dbc-postgresql/issues/125
Unified benchmarks into one for JDBC and JPA. They're now both testing the data access with the plain infrastructure (JdbcTemplate and EntityManager) plus interactions via Spring Data repositories on top of that. Added build profiles to run the same benchmarks against an in-memory H2, a locally running H2 and a locally running Postgres. See the readme for setup instructions.
The JdbcFixture contains code to optionally disable event publication for the JDBC operation. Uncomment the line invoking disableEntityCallbacks(…).
Changed the benchmarks to use 10 warmup iterations instead of 5 to make sure we're at stable numbers once the measurement happens.