SpinTheMic
Pro

Interview practice question

Listing millions of files is slow

System Design · Databases · Intermediate

Your app lists a user's files by scanning object storage prefixes, and it is slow and expensive with millions of objects. What would you change?

What a strong answer covers

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

  • Object storage is not a query engine.
  • Keep file metadata in a database.
  • Index by user and folder.
  • Store object key in metadata row.
  • Use object storage only for bytes.
Practise this topic

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

See all topics