Thanks Ralph, It's work. Additional question: If I use PDO and do second query where will be store data at sql server memory? If so, otherwise some where it will be use memory. So which memory will be use better Sql Server or PHP?
On 26/03/12 18:05, ralphschindler [via Zend Framework Community] wrote: > You should be choosing the proper mysql extension based on your needs. > Mysqli is great for scripts that do alot of data-warehouse type of > iterations (due to its forward-only moving cursor by default). PDO on > the other hand is great for "object model" kind of stuff because by > default, it buffers result sets. > > You have two options: > > * Use PDO > > OR > > * Instruct Mysqli to buffer your result sets > > $resultSet->getDataSource()->getResource()->store_result(); > > Be advised though that doing this will tend to use more application > memory since your database results are now in PHP memory space. > > -ralph > <http://www.ejoom.com> -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-Db-ResultSet-toArray-algoritm-tp4505005p4506143.html Sent from the Zend Framework mailing list archive at Nabble.com.
