Re: [symfony-users][symfony 2] Doctrine memory leaks?
I ran into the same issue today and found that the query logger was logging every insert query, and running the script out of memory. Unfortunately I have not found a way to disable the logger, but you can get around this by commenting out the "$instance->setSqlLogger(...)" line in your *ProjectContainer class. On Thu, Nov 18, 2010 at 7:32 AM, Carlos Silva wrote: > Hi, > > I have been testing Symfony 2 (and Doctrine 2) and I've created a > command to bulk insert data. > > I've found that in this test, PHP is eating ~ 175Mb per 100k records. > Someone has a solutions for this? > > > > Command source: http://pastie.org/1308565 > > Yml Entity Schema > > Application\GeoBundle\Entity\Country: > type: entity > table: country > fields: >id: > type: integer > id: true > generator: >strategy: AUTO >name: > type: string(50) > lifecycleCallbacks: { } > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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 > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
Re: [symfony-users][symfony 2] Doctrine memory leaks?
Chunking the data and running the import over multiple passes. t On Fri, Nov 19, 2010 at 02:32, Carlos Silva wrote: > Hi, > > I have been testing Symfony 2 (and Doctrine 2) and I've created a > command to bulk insert data. > > I've found that in this test, PHP is eating ~ 175Mb per 100k records. > Someone has a solutions for this? > > > > Command source: http://pastie.org/1308565 > > Yml Entity Schema > > Application\GeoBundle\Entity\Country: > type: entity > table: country > fields: >id: > type: integer > id: true > generator: >strategy: AUTO >name: > type: string(50) > lifecycleCallbacks: { } > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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 > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
[symfony-users][symfony 2] Doctrine memory leaks?
Hi, I have been testing Symfony 2 (and Doctrine 2) and I've created a command to bulk insert data. I've found that in this test, PHP is eating ~ 175Mb per 100k records. Someone has a solutions for this? Command source: http://pastie.org/1308565 Yml Entity Schema Application\GeoBundle\Entity\Country: type: entity table: country fields: id: type: integer id: true generator: strategy: AUTO name: type: string(50) lifecycleCallbacks: { } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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