Jon can comment on Doctrine internals. As far as I can say: wow 50k objects. Try PHP 5.3 because it finally has a GC that not only uses reference counting.
Fabian On Thu, Aug 6, 2009 at 1:56 PM, Ken Golovin<ken.golo...@gmail.com> wrote: > > Hi, > > I am processing a large XML, the module I created iterates through > about 50,000 records, creates an object for each record and saves it > to the DB, and am running into memory issues. The memory usage > measured by memory_get_usage() keeps growing with each new object > created. > I have tried flushing the Doctrine's identity map and unsetting the > objects like this: > > $product->getTable()->clear(); > unset($product); > > however that did not help at all > > Is there anything else I can do to free up memory? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---