@Test
    void testBatchInsert_same() {

        JooqUtil.context(jobDbConnProvider, context -> context
                .batch(
                        context.insertInto(
                                        JOB,
                                        JOB.VERSION,
                                        JOB.CREATE_TIME_MS,
                                        JOB.CREATE_USER,
                                        JOB.UPDATE_TIME_MS,
                                        JOB.UPDATE_USER,
                                        JOB.NAME)
                                .values((Integer) null, null, null, null, null, null))
                .bind(1, 123L, "user1", 123L, "user1", JOB_NAME + "_1")
                .bind(1, 123L, "user1", 123L, "user1", JOB_NAME + "_2")
                .execute());

        final List<String> names = JooqUtil.contextResult(jobDbConnProvider, context -> context
                .select(JOB.NAME)
                .from(JOB)
                .fetch(JOB.NAME));

        Assertions.assertThat(names)
                        .containsExactly(JOB_NAME + "_1", JOB_NAME + "_2");

        LOGGER.info("\n{}", AsciiTable.fromCollection(names));
    }
More of a manual test, need DEBUG set on {@link SlowQueryExecuteListener}
stroom-app/src/test/java/stroom/db/util/TestSlowQueryExecuteListener.java