Say you have 10 million rows in a db table represented by a django model. How do you efficiently load all of these, run a function on them and then write some changes back to the db.
I am trying to find the correct course of action when dealing with such a problem