All Questions
Vector Search easy

A B2B SaaS app serves 500 customers, and every query searches only one customer's documents. One large customer runs heavy batch queries that slow down search for everyone. Which sharding approach fits best?

  1. A Shard by hash of document ID so every query is spread evenly across all nodes in the cluster.
  2. B Keep a single global index and add a tenant ID post-filter applied after each ANN search.
  3. C Shard by embedding dimension so that each node stores a different slice of every vector.
  4. D Shard by tenant so a heavy customer's load stays isolated and queries hit only one shard.

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

Get the app

Related questions