Is there any way when using sqlalchemy.orm to get bulk inserts when I commit a session?
I'm looking for behavior like this: > table = Table('person', metadata, > Column('id', Integer, primary_key=True), > Column('name', String) > ) > class Person(object): > pass > > mapper(Person, table) > > s = Session() > > people = [Person('Mick Jagger'), Person('Keith Richards')] > s.add_all(people) > s.commit() INSERT INTO person (name) VALUES (('Mick Jagger'), ('Keith Richards')) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---