G
G
ggrachdev2020-09-30 14:31:40
MySQL
ggrachdev, 2020-09-30 14:31:40

How to add a field to a high-loaded database in a production table with 100 million records?

How can I add a field to a high-loaded database in a production table with 100 million records in different databases without it failing?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lazy @BojackHorseman MySQL, 2020-09-30
@ggrachdev

I can answer about mysql.
in principle, the problem is solved by establishing a second table, switching the code to it, catching up the difference in the data and renaming the tables.
in principle, the processes are automated. for example, the pt-online-schema-change plugin.
but the correct answer is regulation. those works not in prime time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question