---
title: "How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners"
description: "Infinitas Learning, a major European educational publisher, processes results for 1.6 million learners and 324 million assignments annually. After moving from Neon to ClickHouse Managed Postgres, transactional P50 latency dropped from milliseconds to double-digit microseconds, with P99 in double-digit milliseconds. Customer-facing analytics migrated from a complex pipeline to ClickHouse Cloud, where optimization and a distributed cache cut P99 latency from about 13 seconds to 410 milliseconds. The migration of 750 GB of data completed in 16 hours with zero downtime. The team now uses Postgres for transactions and ClickHouse for analytics, with plans to unify them via the pg_clickhouse extension."
---

# How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners

[Clickhouse](https://yomu.fyi/company/clickhouse) · Nov 6, 2026

**Type:** Problem & solution

## Summary

Infinitas Learning, a major European educational publisher, processes results for 1.6 million learners and 324 million assignments annually. After moving from Neon to ClickHouse Managed Postgres, transactional P50 latency dropped from milliseconds to double-digit microseconds, with P99 in double-digit milliseconds. Customer-facing analytics migrated from a complex pipeline to ClickHouse Cloud, where optimization and a distributed cache cut P99 latency from about 13 seconds to 410 milliseconds. The migration of 750 GB of data completed in 16 hours with zero downtime. The team now uses Postgres for transactions and ClickHouse for analytics, with plans to unify them via the pg\_clickhouse extension.

## Context

Infinitas Learning initially built an event-sourced system using Kafka, Avro, and Flink, which was complex and not real-time. Postgres sufficed for transactions but not analytics. They tried Neon but faced challenges with version upgrades, cache coupling, and region deprecation, forcing another migration.

## Approach / What changed

The team uses ClickHouse Managed Postgres for transactional workloads with PL/pgSQL functions as the API, hiding underlying tables to prevent runaway queries. ClickPipes synchronizes data to ClickHouse Cloud for real-time analytics, where query optimization and a distributed cache were added after performance issues.

## Takeaways

- The team replaced a REST API layer with public PL/pgSQL functions, giving platform teams direct database access while hiding underlying tables to prevent ‘doom queries.’
- ClickHouse compressed a 300 GB table to 27 GB (11x reduction), enabling fast analytics on nearly 2 billion rows.
- Distributed caching improved P99 latency from about 13 seconds to 410 milliseconds for teacher-facing dashboards.

## FAQ

### Why did Infinitas Learning migrate from Neon to ClickHouse Managed Postgres?

Neon had challenges with major Postgres version upgrades, cache tied to unpredictable compute, and unavailable extensions like pg\_clickhouse. Additionally, their Azure region was deprecated, forcing a move.

### How did they migrate 750 GB of data with zero downtime?

They set up ClickHouse Managed Postgres, built the schema, and used ClickPipes with logical replication. Data copied in 16 hours; cutover involved switching endpoints within 20 minutes during a maintenance window.

### What are their plans for unifying Postgres and ClickHouse?

They plan to use the pg\_clickhouse Postgres extension to push query execution down to ClickHouse, so transactions and analytics live behind a single service, reducing two connections to one.

**Tags:** [Analytics](https://yomu.fyi/topic/analytics), [ClickHouse](https://yomu.fyi/topic/clickhouse), [Migrations](https://yomu.fyi/topic/migration), [Performance](https://yomu.fyi/topic/performance), [Postgres](https://yomu.fyi/topic/postgres)

- Source: [Clickhouse](https://clickhouse.com/blog/infinitas-learning-clickhouse-managed-postgres)
- Source URL: https://clickhouse.com/blog/infinitas-learning-clickhouse-managed-postgres
- Ingested by Yomu: 2026-11-06T15:00:13.797Z

[Read original post](https://clickhouse.com/blog/infinitas-learning-clickhouse-managed-postgres)
