pip install -r reqs.txt
python manage.py migrate
python manage.py bulk_create
python manage.py bulk_update
python manage.py bulk_update -q
Run data update by asyncpg driver
python manage.py bulk_update --asyncpg
My local DB is dockerised PostgreSQL v 10
by bulk_update
>> 18.606669 seconds
by query
>> 5.477139 seconds
by asyncpg
>> 5.810879 seconds
bulk_update -> raw sql: x3.4 performance improvement