I want to use Zend Paginator in my project with a raw sql query(not Dbselect). I can't use Dbselect, because I have several subqueries in the main sql query. From the manual I found that the only way is to use pagination on resulting array like this
$paginator = Zend_Paginator::factory($array);
but I have a lot of records in the query and it looks like a bad idea to me. Is there any way to solve this problem?