(domain)
This function has the limitation that it only gets docs from dbs that are listed
    for couchapps 'all_docs' design doc in corehq/couchapps/__init__.py
This function has the limitation that it only gets docs from dbs that are listed
    for couchapps 'all_docs' design doc in corehq/couchapps/__init__.py
This function has the limitation that it only gets docs from dbs that are listed for couchapps all_docs design doc in corehq / couchapps / __init__ . py
def get_all_doc_ids_for_domain_grouped_by_db(domain):
    """
    This function has the limitation that it only gets docs from dbs that are listed
    for couchapps 'all_docs' design doc in corehq/couchapps/__init__.py

    """
    for db in _get_all_docs_dbs():
        results = db.view(
            'by_domain_doc_type_date/view',
            startkey=[domain],
            endkey=[domain, {}],
            include_docs=False,
            reduce=False,
        )
        yield (db, (result['id'] for result in results))
def get_all_doc_ids_for_domain_grouped_by_db ( domain ) : for db in _get_all_docs_dbs ( ) : results = db . view ( 'by_domain_doc_type_date/view' , startkey = [ domain ] , endkey = [ domain , { } ] , include_docs = False , reduce = False , ) yield ( db , ( result [ 'id' ] for result in results ) )