Databases · Middle · Question 62 of 75

Why can ALTER TABLE on a busy table freeze the whole application?

Explanation

Set lock_timeout in migrations so the change fails fast instead of queuing everyone, and retry later.

Further reading

Problem with a question

Databases · Middle · question 62

Test yourself

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

Take this quiz