@Override
    public Set<Long> exists(final Set<Long> ids) {
        if (NullSafe.isEmptyCollection(ids)) {
            return Collections.emptySet();
        } else {
            return JooqUtil.contextResult(metaDbConnProvider, context -> {
                var select = context
                        .select(meta.ID)
                        .from(meta)
                        .where(meta.ID.in(ids));

                LOGGER.debug("Find SQL:\n{}", select);

                return new HashSet<>(select.fetch(meta.ID));
            });
        }
    }
@return True if any term in any rule expression uses at least one of {@code fields}.
stroom-meta/stroom-meta-impl-db/src/main/java/stroom/meta/impl/db/MetaDaoImpl.java