All Questions
Scaling Writes medium

You use Hash Partitioning to distribute data evenly. What is the downside when you need to run a Range Query (e.g., `SELECT * FROM Users WHERE ID > 100`)?

  1. A It is faster than Range Partitioning.
  2. B You cannot run the query.
  3. C Scatter-Gather: Since the keys are hashed randomly, 'adjacent' IDs are scattered across all shards. The query must check *every* shard.
  4. D It causes a deadlock.

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

Get the app

Related questions