TLDR: Local vs Global Indexes in Partitioned Databases
Date: 2022-02-07 Source: https://arpitbhayani.me/blogs/how-indexes-work-on-partitioned-and-sharded-data
Overview
Explore indexing strategies for partitioned databases, focusing on local and global secondary indexes. Optimize query performance on non-partitioned attributes. The previous essay looked at two popular ways to horizontally partition the data - Range-based Partitioning and Hash-based Partitioning.
Key Points
- The previous essay looked at two popular ways to horizontally partition the data - Range-based Partitioning and Hash-based Partitioning.
- Local Secondary Index: Local Secondary Indexing creates indexes on a non-partitioned attribute on the data belonging to the partition.
- Global Secondary Index: Global Secondary Indexes choose not to be local to a partition’s data instead, this indexing technique covers the entire dataset.