---
title: "Longbridge Technology simplifies their architecture and achieves 10x performance boost with ClickHouse"
description: "Longbridge, a Singapore online brokerage, replaced a fragmented market-data stack of PostgreSQL (historical), Redis (real-time) and DynamoDB (high-write) with ClickHouse after evaluating it against TimescaleDB and TDengine for write throughput, Decimal support, time functions and aggregations."
url: "https://swe.quest/articles/longbridge-technology-simplifies-their-architecture-and-achieves-10x-e3a982c02b6e4b33"
canonical: "https://clickhouse.com/blog/longbridge-technology-simplifies-their-architecture-and-achieves-10x-performance-boost-with-clickhouse"
source: "ClickHouse"
published: "2025-03-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["analytics","databases","postgres","payments"]
---

# Longbridge Technology simplifies their architecture and achieves 10x performance boost with ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-03-17, 8 min read, Case study. Original: [https://clickhouse.com/blog/longbridge-technology-simplifies-their-architecture-and-achieves-10x-performance-boost-with-clickhouse](https://clickhouse.com/blog/longbridge-technology-simplifies-their-architecture-and-achieves-10x-performance-boost-with-clickhouse)

## Summary

Longbridge, a Singapore online brokerage, replaced a fragmented market-data stack of PostgreSQL (historical), Redis (real-time) and DynamoDB (high-write) with ClickHouse after evaluating it against TimescaleDB and TDengine for write throughput, Decimal support, time functions and aggregations. Historical data was migrated via ClickHouse external tables over OSS and Alibaba Cloud DTS, which merged 128 PostgreSQL sub-tables into one table and converted varchar fields to Decimal; Redis was kept for real-time data with ticker-level writes moved to ClickHouse. Reported results include about 5x compression (500GB down to 100GB), 10x faster single-table writes than PostgreSQL, and built-in aggregation and window functions replacing scheduled statistics jobs.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)

## Prerequisites

- columnar databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- time-series data

## Keywords

ClickHouse, PostgreSQL, Redis, DynamoDB, Alibaba Cloud DTS, TimescaleDB, TDengine

## Related posts

- [OLTP is expensive, you can ClickHouse it.](https://swe.quest/articles/oltp-is-expensive-you-can-clickhouse-it-cd5e8f20ed5b5b0f.md): ClickHouse · 2026-10-15 · Easy · 6 min read · PostgreSQL, Analytics & OLAP, Cost optimization, Storage engines, Event-driven architecture
  Data that has stopped changing doesn't need Postgres's ACID machinery, so it can be offloaded to ClickHouse for roughly an order of magnitude better unit economics.
- [ClickHouse and PostgreSQL - a Match Made in Data Heaven - part 1](https://swe.quest/articles/clickhouse-and-postgresql-a-match-made-in-data-heaven-part-1-7c7668b9b4913b70.md): ClickHouse · 2022-12-20 · Medium · 18 min read · Analytics & OLAP, PostgreSQL, Query engines, Performance engineering, SQL
  ClickHouse can query PostgreSQL data in place through the postgresql table function and the PostgreSQL table engine.
- [ClickHouse and PostgreSQL - a Match Made in Data Heaven - part 2](https://swe.quest/articles/clickhouse-and-postgresql-a-match-made-in-data-heaven-part-2-67e202f8b29633ab.md): ClickHouse · 2023-01-26 · Medium · 8 min read · Analytics & OLAP, PostgreSQL, Data pipelines, SQL, Performance engineering
  ClickHouse dictionaries backed by a PostgreSQL source can replace joins against Postgres-resident mapping tables, keeping the data in memory and refreshing it via LIFETIME and an invalidate\_query.
- [How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight](https://swe.quest/articles/how-we-migrated-clera-s-500-gb-production-database-to-clickhouse-managed-f4ed327a88d71cd7.md): ClickHouse · 2026-10-08 · Medium · 8 min read · PostgreSQL, Databases, Performance engineering, Schema migrations, Storage systems
  Clera moved a 500 GB, 500+ table production Postgres database from the EU to the US overnight onto ClickHouse Managed Postgres, with production traffic still running, using two parallel ClickPipes pipelines.
- [92x faster queries: How Open Electricity uses ClickHouse to track Australia’s energy transition in real time](https://swe.quest/articles/92x-faster-queries-how-open-electricity-uses-clickhouse-to-track-australia-s-20ac8734e6948ce3.md): ClickHouse · 2026-06-17 · Medium · 9 min read · Analytics & OLAP, PostgreSQL, Performance engineering, Schema migrations, Deployment
  Open Electricity moved the analytical workload behind its public Australian energy API from Postgres/TimescaleDB to ClickHouse, keeping relational data in Postgres.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
