Hi,

Has anyone been using sfDoctrineActAsTaggablePlugin ?
I have a simple site with one table and added this "taggable" plugin  
to the schema.

It works fine until I built a task to import 200K records.
A simple...

foreach () {
         $obj = new Obj();
         $obj->title = ...
         $obj->description = ...
         $obj->url = ...
        $obj->save();
}

Would make the script exhaust  100Mb after some 1000 records. Insaine.
First i thought it was a Doctrine/Symfony problem. Then I upgrade PHP  
to 5.3 after reading this 
http://groups.google.com/group/symfony-users/browse_thread/thread/222b76fad0b1868d
Nothing solved the memory leak... not even the $obj->free() or unset 
($obj) tips.

Notice that I wasn't even saving the tags. I was early, but i removed  
them just to debug the problem. At this point I was only saving the  
main objects, without touching the tags.
Then I remembered to remove the plugin out of the equation. Same code,  
model updated without the Taggable: ~ in the schema.yml

And it worked. No more memory leaks. The task run with any noticiable  
memory increments.

The problem is that the plugin page 
http://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin 
  doesn't have a 'Report a bug' link nor they answer on the mailling- 
list.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to