I am using sqlite3. Tha data is in memory most of it after being read from a zlib.compress of a cPickle.dumps of a class object on a file.
I was thinking of something like a method to store, for example, a list of records in the db at once. >From your answer I may conclude that I should use a "non django" solution to >load the database, isn't it? --- On Fri, 12/24/10, Christophe Pettus <x...@thebuild.com> wrote: > From: Christophe Pettus <x...@thebuild.com> > Subject: Re: Massive insertion of records > To: django-users@googlegroups.com > Date: Friday, December 24, 2010, 8:46 PM > > On Dec 24, 2010, at 9:26 AM, Silva Paulo wrote: > > > I need to do a massive insertion of records in two > tables "connectd" by "foreignkey". Is there a way, using the > Django db API, to do it. e=Foo(...);e.save() seems too > slow. > > It's always going to be very slow to do inserts via the > Django ORM compared to going straight to the database. > Which DB are you using, and what format is the data in > before it gets inserted? > > -- > -- Christophe Pettus > ...@thebuild.com > > -- > You received this message because you are subscribed to the > Google Groups "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.