Ch. 6
Partitioning and Secondary Indexes
Secondary indexes on partitioned data require either local indexes per partition or a global index.
Primary key partitioning is straightforward — route by key hash. Secondary indexes (search by email, filter by date) complicate routing because the indexed value may live on a different partition than the record.
secondary indexElasticsearchMongoDBscatter-gatherglobal indexlocal index