(reindex_accessor)
Returns a generator that will iterate over all rows provided by the
    reindex accessor
Returns a generator that will iterate over all rows provided by the
    reindex accessor
Returns a generator that will iterate over all rows provided by the reindex accessor
def iter_all_rows(reindex_accessor):
    """Returns a generator that will iterate over all rows provided by the
    reindex accessor
    """
    for db_alias in reindex_accessor.sql_db_aliases:
        docs = reindex_accessor.get_docs(db_alias)
        while docs:
            for doc in docs:
                yield doc

            last_id = getattr(doc, reindex_accessor.primary_key_field_name)
            docs = reindex_accessor.get_docs(db_alias, last_doc_pk=last_id)
def iter_all_rows ( reindex_accessor ) : for db_alias in reindex_accessor . sql_db_aliases : docs = reindex_accessor . get_docs ( db_alias ) while docs : for doc in docs : yield doc last_id = getattr ( doc , reindex_accessor . primary_key_field_name ) docs = reindex_accessor . get_docs ( db_alias , last_doc_pk = last_id )