Connection getConnection() throws SQLException {
//        ((com.mysql.cj.jdbc.ConnectionImpl) connection).setRewriteBatchedStatements(true);
//        sqlStatisticsDbConnProvider.getConnection().unwrap(ConnectionImpl.class)
//                .getPropertySet()
//                .getBooleanProperty("rewriteBatchedStatements")
//                .setValue(true);
        return sqlStatisticsDbConnProvider.getConnection();
    }
This is a third line fall back for loading the stats and will be very
slow as it is inserting them one by one. Any failures will be logged and
processing will carry on hopefully some records will get through
stroom-statistics/stroom-statistics-impl-sql/src/main/java/stroom/statistics/impl/sql/SQLStatisticValueBatchSaveService.java