When using pagination in CakePHP, how does the queries work? Does it:
a) Query the entire record set and only display the records specified by the pagination settings?
b) Query only a subset of the records based on the pagination settings?
I want to avoid the query on millions of records if it doesn't use option "b". I have been searching the web for hours and I cannot find anything.
If it is option "a", do you know of any customizations that would convert pagination to option "b"? I am working with Oracle, so the standard
SELECT * FROM `table`
LIMIT 60 , 30
doesn't work in Oracle like it does in MySQL. But I can easily convert a MySQL sample to Oracle as needed.
UPDATE: It appears to be limiting the data correctly, but I cannot see the query to know for sure that it is. When I echo out the results in the dbo_source.php, it only returns the number of records as defined by the pagination limit. Strange that it will not show the actually query used to paginate the records. Could it be an oracle setting they pass before the query is made?