Skip to content

Glossary: System Design Beyond the Basics in JavaScript

Local / global index

Also written: local index, global index

A local index is kept per shard, so writes are cheap but queries ask every shard. A global index is partitioned by the indexed value, so queries are cheap but writes touch two shards and the index can lag.

Where the book teaches it

Related terms

Secondary index