Question 5 of 10Pro Only

How do you perform schema changes on tables with billions of rows in production without causing downtime or significant performance degradation? Describe the tools and techniques you use.

Sample answer preview

Schema changes on billion-row tables in production are among the most challenging operations a DBA performs. A naive ALTER TABLE on a table with billions of rows can lock the table for hours, block all queries, and effectively cause a complete application outage.

online schema changepg_repackgh-ostpt-online-schema-changeexpand-and-contractbatched update

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more Database Administrator interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime