SpinTheMic
Pro

Interview practice question

Schema evolution in a NoSQL store

System Design · Databases · Experienced

Your MongoDB collection has documents in three different schema versions after years of changes. Queries are getting messy. How do you manage it?

What a strong answer covers

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

  • Add schema version field.
  • Read-time upgrade in code.
  • Background migration to latest.
  • Validation rules for new writes.
  • Remove old-version code after migration.
Practise this topic

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

See all topics