I'm hoping this will be a really simple question.
I just wanted some advise on the bulk updating of records.
An example bulk update may go something like this:
for user in User.objects.all().iterator():
user.is_active = False
user.save()
Is there a more efficient way to do this on the database level using the Django ORM?
Would the following be more efficient:
User.objects.all().update(is_active=False)?