[symfony-users] Symfony performance handling batch import objects

2010-04-06 Thread Roland Cremer
Hi, I've made a model for a bookstore and i have to import new books. I've generated a symfony task to import a csv file and loop thru the records and genarate the book object and related objects. The problem is that the script is not performing. Inserting 4000 books takes more than 30 minutes.

Re: [symfony-users] Symfony performance handling batch import objects

2010-04-06 Thread Thomas Rabaix
Don't hydrate objects in batch script, just use the insert method from the doctrine's connection object ... On Tue, Apr 6, 2010 at 9:10 PM, Roland Cremer roland.cre...@gmail.comwrote: Hi, I've made a model for a bookstore and i have to import new books. I've generated a symfony task to