Schema design is a critical step in making sure an application scales well. There are considerations for reads and writes, both with and without sharding. We'll go through a few use cases and examine how difference schemas impact performance.
YYY , data : ZZZ } • Shard by user_id • Looking up an activity stream hits 1 node • Writing even is distributed • Index on { “event_id” : 1 } for deletes