Using an update query with synchronize_session=False will generate a single SQL statement that will be as efficient as possible.
Look at this example http://stackoverflow.com/questions/270879/efficiently-updating-database-using-sqlalchemy-orm/270942 and docs http://www.sqlalchemy.org/docs/05/reference/orm/query.html It will be up to you then to make the query part clever enough to be fast. Let us know your solution, it is a common problem. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---