i have a query that returns ~50k rows,
seems like doctrine put this whole result into memory what exceeds memory limit(128M)
the only solution i found that saves some memory is
$result->execute(array(), Doctrine_Core::HYDRATE_NONE);
but it still exceeds the limit,
is there any way to read one row at a time with doctrine ?
Update:
The below links are now dead, the current documentation is here
Doctrine Documentation – 13. Batch Processing (DEAD)
Update:
For 1.2 check out this page:
http://docs.doctrine-project.org/projects/doctrine1/en/latest/en/manual/data-hydrators.html (DEAD)
Under the "On Demand" heading you will find the answer.