Tortoise ORM: bulk_create update_fields vs on_conflict
To perform upsert operations in Tortoise, we can use the bulk_create
method. For this we should provide both update_fields
and on_conflict
params. Like this:
To perform upsert operations in Tortoise, we can use the bulk_create
method. For this we should provide both update_fields
and on_conflict
params. Like this: