def chunk_indexing(indexer, chunk_size):
 chunks = list(indexer.get_indexable().values_list('id', flat=True))
 return (chunked(chunks, chunk_size), len(chunks))

def chunk_indexing ( indexer , chunk_size ) : chunks = list ( indexer . get_indexable ( ) . values_list ( 'id' , flat = True ) ) return ( chunked ( chunks , chunk_size ) , len ( chunks ) )
chunk the items to index .