A
A
adisos2014-09-24 19:38:09
Software Deployment
adisos, 2014-09-24 19:38:09

How to change the database structure in production with long SQL queries?

It is necessary to change the structure of the database, respectively, to change the data a little. The process will take about 15 minutes. Some queries block the database.
There is a task: it is necessary that the site works while this process is going on.
From what I was offered: to create an exact copy of the site. On it, make all the changes, as it ends, send the web server there. So that there is no difference while the process is in progress, make sure that there is no entry in the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Solovyov, 2014-09-24
@pavel_salauyou

like a question from an interview)), but in general create a copy of the table, transfer the changes there, then rename the table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question