Unlock this content

Enter your email to unlock this content for free

By continuing, you agree to our Terms of Service and Privacy Notice, and to receive occasional marketing emails.

Schema evolution

Prerequisites
  • Completed Foundation module (ClickHouse architecture, schema design, and engines)
  • Completed Ingestion module (understanding parts, merges, and ingestion patterns)
  • Understanding of SQL and database schema concepts
  • Familiarity with ClickHouse table engines and sorting keys

This learning module covers how to evolve ClickHouse schemas in production. You'll learn why schema evolution is challenging, what primitives ClickHouse provides, how to categorize changes by operational cost, common migration patterns, and how to meet developer expectations for schema changes.

Chapter 53

Why Schema Evolution is Hard

Video lesson Reading materials
Why Schema Evolution is Hard

Chapter 54

Schema Evolution Primitives

Video lesson Reading materials
Schema Evolution Primitives

Chapter 55

Schema Change Costs

Video lesson Reading materials
Schema Change Costs

Chapter 56

Migration Patterns

Video lesson Reading materials
Migration Patterns

Chapter 57

Developer Expectations

Video lesson Reading materials
Developer Expectations

Chapter 58

Multi-Tenant Migration Example

Video lesson Reading materials
Multi-Tenant Migration Example
What you'll learn
  • Why Schema Evolution is Hard: Understanding that schema evolution is an infrastructure problem, not just a database problem
  • ClickHouse Primitives: The ALTER commands and operations available for schema changes
  • Operational Costs: How to categorize changes by their cost: metadata, mutations, and full rewrites
  • Migration Patterns: Common patterns for safely evolving schemas in production
  • Developer Experience: How to meet developer expectations for schema evolution
  • Practical Example: A complete example of evolving a real project to be multi-tenant

Learn More

Tinybird is not affiliated with, associated with, or sponsored by ClickHouse, Inc. ClickHouse® is a registered trademark of ClickHouse, Inc.

Schema evolution | ClickHouse for Developers