0

I'm trying to perform some operations over a queryset and then use the .save() on each model instance, but it seems to be slow.

for clock in Clocks.objects.filter(status=True):
     # actions here
     clock.save()

Is this correct or is there any other method to be used when updating a model instance within a queryset.

Do you think DRF can perform this any better?

erick.chali
  • 586
  • 1
  • 9
  • 22

0 Answers0