Add document_id and update all rows programatically

Hi. I have 100 tables, and some table have 5-10M rows of data. The migration is trying to add document_id in my MySQL Database and update each row with a unique row. I would like to do that in a Python script. How is Strapi currently doing it?

This topic has been created from a Discord post (1303037020481917053) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord