---
answer: direct
beat: system-design
source: 1 article · updated: August 11, 2026
---

What is a posting list and why does it need compression?

A posting list stores the document IDs (and positions) where a term appears. Without compression, storing every ID as an 8-byte integer wastes space. Delta encoding stores only differences between consecutive IDs, and varint encoding uses fewer bytes for small numbers, cutting posting-list size by 80–90% while maintaining fast access.

Answered in

The Inverted Index

A sorted dictionary mapping terms to document IDs. Transform search from O(corpus size) to O(1) lookup, enabling full-text search at scale.

Crashtech Editorial August 11, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.