try to optimize findAllDocsWithBestName queries