Databases · Senior · Question 34 of 75

How do you safely backfill a new column on a table with 500 million rows?

Explanation

A single giant update holds locks for long, bloats the table and can stall replicas. Batches are resumable if something fails.

Further reading

Problem with a question

Databases · Senior · question 34

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz