Comment

Peter Bengtsson

Worth a thought. I should re-run my little benchmark if I have near 100% updates done.

Parent comment

Haki benita

Hey Peter, a better approach for the orm would be to first update, `updated = Model.objects.filter(...).update(..)` And insert only of no rows were updated `if updated == 0: # insert` The comparison between the two approachs depends on wheather you have more updates or inserts.