private void unlockAllLockedStreams() {

        JooqUtil.context(metaDbConnProvider, context -> {
            final byte unlockedId = MetaStatusId.getPrimitiveValue(Status.UNLOCKED);
            final byte lockedId = MetaStatusId.getPrimitiveValue(Status.LOCKED);
            final int count = context.update(meta)
                    .set(meta.STATUS, unlockedId)
                    .set(meta.STATUS_TIME, Instant.now().toEpochMilli())
                    .where(meta.STATUS.eq(lockedId))
                    .execute();
            LOGGER.debug("Unlocked {} meta records", count);
        });
    }
Seeing which execution timer was faster
stroom-meta/stroom-meta-impl-db/src/test/java/stroom/meta/impl/db/TestMetaServiceImpl.java