Optionally, limit number of rows per batch