SpinTheMic
Pro

Interview practice question

Tracking when rows change

Backend Engineering · Relational Databases · Beginner

You need to know when each record was created and last updated. How would you implement this?

What a strong answer covers

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

  • created_at and updated_at columns.
  • Set by DB defaults/triggers or ORM.
  • Store in UTC (timestamptz).
  • Index if used for queries.
  • Audit table for full history.
Practise this topic

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

See all topics