def order_modified_iter(cursor, trim, sentinel):
    for rows in iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)),
            sentinel):
        yield [r[:-trim] for r in rows]
Yields blocks of rows from a cursor. We use this iterator in the special
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/sql/query.py/order_modified_iter