これが私の質問です。
そんなモデルいるよ
class ActionQueue(models.Model):
    action_type = models.CharField(max_length=30, choices=ACTION_QUEQUE_TYPE)
    def execute(self):
        if self.action_type == 'exam':
                ... do something ...
ActionQueue の各インスタンスに対して関数「execute」を実行する最良の方法は何ですか? 現在、私は for..in を使用しています:
 for action in ActionQueue.objects.all():
     action.execute()
たぶん、同じ結果を達成するための (パフォーマンスの観点から) より良い方法がある..
ありがとうございました