Secondary Indexes & Rebalancing
7 min read.
Compare local and global secondary indexes on partitioned data, then add a node and move whole partitions instead of rehashing every key.
Think of it this way: A local index is like each library branch keeping a catalogue of only its own books: to find every book by one author you phone every branch. A global index is one catalogue split by author name: you call one office, but when a branch buys a book the right office has to be told.
Cars are split by id across two nodes. Each node keeps an index of only its own cars.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Local or global index?
Sort each trait into the kind of secondary index it describes.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Local index
Drop items hereGlobal index
Drop items hereQuiz
8 questionsWith a local secondary index, a search by that field must…
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.