One of my API calls can result in updates to a large number of objects (Django models). I'm running into performance issues with this since I'm updating each item individually, saving, and moving on to the next:
for item in Something.objects.filter(x='y'):
item.a="something"
item.save()
Sometimes my filter criterion looks like "where x in ('a','b','c',...)".
It seems the official answer to this is "won't fix". I'm wondering what strategies people are using to improve performance in these scenarios.