GLOSSARY · A WORD, UNPACKED
scatter-gather
a distributed query pattern that broadcasts a query to every database shard and combines the returned subsets.
A little more detail
When a query does not filter on the designated shard key, the database coordinator cannot determine which physical shard holds the data. It must scatter the query to all shards in parallel, wait for every node to respond, and gather/sort the combined result, causing high latency and cluster load.
See it in practice
These lessons pair the idea with examples you can change and run.