At the topof the documentation for phalcon pagination it states that "Since PDO doesn’t support scrollable cursors this adapter shouldn’t be used to paginate a large number of records".
Could someone please clarify on this because as far as i am aware postgres (which I am using) DOES support scrollable cursors. As such i cannot see why there would be any memory issues with large data sets.
I have not looked into the internals of pagination, but I can only assume the cursor is moved to the necessary point and then moves forward for the respective number of items per page defined.
Thanks Thomas