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 <[email protected]> wrote:

> From: Christophe Pettus <[email protected]>
> Subject: Re: Massive insertion of records
> To: [email protected]
> 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
>    [email protected]
> 
> -- 
> You received this message because you are subscribed to the
> Google Groups "Django 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/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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to