I have a migration script to update DB tables which runs fine on a staging environment. As production env contains a ton of tables and running with script would block down entire DB, I'd prefer to find a way to minimize that. Maybe running the code in batches or doing a bulk update/create.
Are there any ways present on Tortoise ORM which could help me in this direction ? If anyone has an example of a similar script, please link them below.
I have a migration script to update DB tables which runs fine on a staging environment. As production env contains a ton of tables and running with script would block down entire DB, I'd prefer to find a way to minimize that. Maybe running the code in batches or doing a bulk update/create.
Are there any ways present on Tortoise ORM which could help me in this direction ? If anyone has an example of a similar script, please link them below.
Thanks, Animesh