@Override
    public void executeEnd(final ExecuteContext ctx) {
        super.executeEnd(ctx);
        if (LOGGER.isDebugEnabled() && ctx != null) {
            final Duration duration = Duration.between(startTime, Instant.now());
            logQueryDuration(ctx, duration);
        }
    }
Logs any sql statements that take longer than 2s to execute.
Enable this by setting {@link SlowQueryExecuteListener} to DEBUG.
stroom-db-util/src/main/java/stroom/db/util/SlowQueryExecuteListener.java