if youre using the ORM, its doing a flush() which can insert many
values at once.  the ID for each value is available on the newly saved
instance directly.  if you need to get the ID at the instant its saved,
you can implement the after_insert() method on mapper extension which
will give you the instance (although it still may have saved many other
instances in a batch, then sent them to after_insert().  theres a
"batchmode" flag to turn that off, but it will slow things down).

is there some operation that needs to happen with the ID in between
INSERTs of multiple items ?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to