title: Updating a model from a dictionary object efficiently
body: <p>I have a simple model:</p>
  
  <pre><code>     class A(models.Model):
          status=models.CharField()
  </code></pre>
  
  <p>and I have a list of dictionary items in this way:</p>
  
  <pre><code>     data=[
           {'id':1, 'status':'moved'},
           {'id':2, 'status':'sized'}
           ]
  </code></pre>
  
  <p>the id and status keys are related to the model fields. Currently, I am updating them by looping the data and it was ok. But the web service sent a long list the other day and it got me thinking, what if they don't send for days and when they send, it can be a big list. Since i don't have control over the data passed to me, what would be the most efficient way to make the updates?</p>
  
  <p>Currently:</p>
  
  <pre><code>       for i in range(len(data)):
             record=A.objects.get(pk=data[i]['id'])
             record.status=data[i]['status']
             record.save()
  </code></pre>
  
  <p>I am looking for something like .filter().update(....) but with status that can apply differently to each record.</p>
  
  <p>Any one?</p>