tortoise-orm icon indicating copy to clipboard operation
tortoise-orm copied to clipboard

How should I change my migration script for production ?

Open AnimeshRy opened this issue 3 years ago • 0 comments

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.

AnimeshRy avatar Aug 29 '22 05:08 AnimeshRy