should we use `iter_docs` here? in the case where you have tons of groups this could eventually cause some memory issues.