immediately after) seems to help GC on freeing memory sooner : on my
import task, and my server, the growth of memory footprint was slowed down.
Regards,
Benoit
-Original Message-
From: pghoratiu
Sent: jeudi 3 juin 2010 00:33
To: symfony users
Subject: [symfony-users] Re: batch
Hi,
This is a common problem. Like Eno said, it's easier to split the
import into small batches.
In your task :
protected function execute($arguments = array(), $options = array())
{
// initialize the database connection
$configuration =
ProjectConfiguration::getApplicationConfigurat
I have done something similar and the memory leak problem was
difficult to solve. In my case
it was due to circular references between objects and I always had to
use unset() explicitely on
individual objects after saving them into the database.
Make sure the objects you are trying to save do not r