Loops over records in batches, allowing you to operate on them.
Works with $this->builder to get the Compiled select to
determine the rows to operate on.

@param integer  $size
@param \Closure $userFunc

@throws \CodeIgniter\Database\Exceptions\DataException