php - How to free memory from Doctrine? -



php - How to free memory from Doctrine? -

if have entity repository , invoke findall() method, how able free memory afterwards? ran little test using $entitymanager->clear(), did not job. in advance help!

do need records? can filter results, less objects created. problem php is, won't allow free memory until process has ended.

you can seek unset() if need records. aware memory won't free, think garbage collector of php has problem cycling references, doctrine guess has such references powerful.

a similar question yours example: why php doctine's free() not working?

if command line mass iteration can please try

$this->_em->detach($row[0]);

as described here: http://www.doctrine-project.org/blog/doctrine2-batch-processing

php doctrine

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -