Your application database (OLTP) and your analytics database (OLAP) are optimized for fundamentally different workloads. Using the right engine for the right job gives you the best of both worlds.
| Aspect | OLTP (PostgreSQL) | OLAP (ClickHouse) |
|---|---|---|
| Schema | Normalized (3NF) | Denormalized (Star/Snowflake) |
| Storage | Row-oriented | Column-oriented |
| Optimized for | Transactions (INSERT/UPDATE/DELETE) | Aggregations (SUM, COUNT, GROUP BY) |
| Consistency | Strict ACID | Eventual consistency OK |
| Compression | Moderate (2-4x) | Aggressive (10-40x) |
| Query pattern | Single-row lookups | Full-table scans, analytics |
Use the Altinity Sink Connector to mirror your OLTP tables directly into ClickHouse with the same schema. No transformation needed. This is the fastest path to analytics.
ClickHouse is still 10-100x faster for analytics even with the same normalized schema, because column-oriented storage and vectorized execution make aggregation queries dramatically faster.
Use dbt Core or ClickHouse materialized views to reshape the mirrored data into a denormalized star schema. This unlocks maximum analytical performance — pre-joined fact tables, dimension tables, and pre-aggregated metrics.