I want to create or update objects from a list of dicts using sqlalchemy.
Doing something like: session.bulk_update_mappings(MyObject, list_of_dicts)
And the problem is that I am getting integrity error, for cases when I there are some from the list_of_dicts are not in the database.
So I am kind of looking for a way to combine bulk_update_mappings and bulk_insert_mappings for one set of objects.