IT lexicon › Infra & Ops › High Cardinality

High Cardinality

Infra & Ops På svenska → Updated: 2026-11-14

A dimension or label with many possible values, making it expensive to store and query data efficiently.

In metrics and traces, you tag data with labels ("which database?", "which user ID?", "which host?"). A label like "host" might have 50 values—that's manageable. But "user_id" might have millions. That's high cardinality: each new value creates a new time series. Storage costs explode, and you can't query the data efficiently.

A classic mistake is tagging traces with user IDs or request IDs directly. A service with 10 million daily users suddenly creates 10 million unique label combinations—a problem that worsens as the user base grows. Many systems count high cardinality as a top storage problem.

← Back to the lexicon