SpinTheMic
Pro

Interview practice question

Deleted records keep showing up

Backend Engineering · Relational Databases · Beginner

You added soft deletes with a deleted_at column, but deleted records keep appearing in some screens. What went wrong and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Some queries forgot the filter.
  • Centralise filter (default scope, repository).
  • Views for active records.
  • Partial indexes on active rows.
  • Tests for deleted records.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics