Iterate over all records if pagination needed