Speed up Django migration that adds two fields into one
Unfortunately you're using django&lt;2.2, since from 2.2 onwards you can use bulk_update , but you can still use something like

ParticipationCount.objects.all().update(
    people=F("male") + F("female")
)


Which will do it in one query to save time. This will fail for certain fields in Postgres however as it requires some specific type casting, but this can be done within the query