I drastically sped up my inserts by precomputing any defaults on a
column and passing them explicitly instead of calculating them on each
insert.  For example, each row had a timestamp and the timestamp was
being calculated on each insert for each row.  Since I was inserting
them all at the same time I created the timestamp once and passed the
value for each row. Easily halved the time it took to insert 20,000
rows.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to