summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
583c058)
Mostly done to fix RAM usage issues, but seems to have increased speed slightly.
+ # Remembering some zillion rows in the session consumes a lot of
+ # RAM. Let's not do that. Commit every 1000 rows
+ if len(session.new) > 1000:
+ session.commit()
+
session.commit()
# Attempt to add any spare rows we've collected
session.commit()
# Attempt to add any spare rows we've collected