When dealing with records of at least 1 million rows, in terms of performance, is it better to:
Select the whole record e.g., SELECT * FROM tbl
then paginate the result using array_chunk()
or array_slice()
or
Select only part of the record e.g., SELECT * FROM tbl LIMIT x
per page?