PHP Doctrine ORM: Low memory
Today, I made an arduous discovery: Doctrine 1.2, the Object-Relational mapper used with symfony 1.4, has a HYDRATE_ON_DEMAND fetch mode. This allows doctrine to function just like pdo does: You do a query, loop over it, and the data doesn’t consume memory until it gets fetched. (And can be freed before the next pass)