ArchDeck · 115 cards

← All families
Open full library ↗
← Back to family

S3 · Foundations

Column-Based Storage

Analytics and Aggregations

Overview

When you're reading millions of rows but only a few columns, column storage shines. Optimized for analytical workloads, aggregations, and time-series data.

When to use

  • Analytics and reporting
  • Time-series data
  • Write-heavy, read-aggregation workloads
  • Large-scale data warehousing

Quick assessment

  • Are your queries reading many rows but few columns?
  • Is compression important for your data volume?
  • Are you primarily doing aggregations?

In practice

How it works

Scan the fields the analytical question actually needs.

Make it work

Choose partitions and sort order around real reports. Measure scanned data and ingestion cost; keep transactional needs explicit.

The trade-off

Frequent row-level changes can be awkward. Match the storage engine to the workload.

Are our reads analytical or transaction-oriented?

Key patterns

  • Partition keys for distribution
  • Clustering columns for sort order
  • Denormalization for read efficiency
  • Materialized views for common queries

Examples: Apache Cassandra, Amazon Redshift, Google BigQuery, ClickHouse

Counter-patterns

  • Row-level operations (updates, deletes)
  • Ad-hoc queries on arbitrary columns
  • OLTP workloads

Reality check

Excellent compression and fast analytical queries, but poor for row-level operations and updates can be expensive.

NFR profile

security
3/5
usability
2/5
performance
4/5
reliability
4/5
scalability
5/5
testability
2/5
availability
3/5
extensibility
2/5
maintainability
3/5
Explore the full library and printable cards