Databases · Senior · Question 75 of 75

Why might a unique index on email be unsuitable once you add soft deletes?

Explanation

Partial unique indexes enforce uniqueness only among active rows. Decide too whether email checks should be case-insensitive (lower(email)).

Further reading

Problem with a question

Databases · Senior · question 75

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