All Questions
Scaling Reads medium

You build a 'News Feed' by querying the 'Friends' table, then querying the 'Posts' table for each friend. As a user gets more friends, the page gets slower. What is this anti-pattern?

  1. A The N+1 Query Problem.
  2. B Deadlock.
  3. C Index Scan.
  4. D Sharding.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions