---
title: "92x faster queries: How Open Electricity uses ClickHouse to track Australia’s energy transition in real time"
description: "Open Electricity moved the analytical workload behind its public Australian energy API from Postgres/TimescaleDB to ClickHouse, keeping relational data in Postgres."
url: "https://swe.quest/articles/92x-faster-queries-how-open-electricity-uses-clickhouse-to-track-australia-s-20ac8734e6948ce3"
canonical: "https://clickhouse.com/blog/openelectricity-australia-energy-transition"
source: "ClickHouse"
published: "2026-06-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["analytics","postgres","performance","schema-migrations","deployment"]
---

# 92x faster queries: How Open Electricity uses ClickHouse to track Australia’s energy transition in real time

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-06-17, 9 min read, Case study. Original: [https://clickhouse.com/blog/openelectricity-australia-energy-transition](https://clickhouse.com/blog/openelectricity-australia-energy-transition)

## Summary

Open Electricity moved the analytical workload behind its public Australian energy API from Postgres/TimescaleDB to ClickHouse, keeping relational data in Postgres. The data is about 1 billion five-minute records, growing by 500k a day. An all-time monthly aggregation dropped from 313 seconds to 3.4 seconds (92x), and to 60 ms with a materialized view, on 4 cores and 4 GB RAM versus Postgres's 16 cores and 32 GB. Lessons from the feature-flagged parallel migration: remember FINAL with ReplacingMergeTree, and encode data completeness into version numbers so partial materialized-view aggregates don't win deduplication. Also standardize on UTC DateTime64 and chunk backfills into 3-day windows of 20k-row batches.

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)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- SQL aggregation ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- materialized views
- time-series data basics

## Keywords

ClickHouse, TimescaleDB, PostgreSQL, ReplacingMergeTree, Open Electricity, materialized views

## Related posts

- [Longbridge Technology simplifies their architecture and achieves 10x performance boost with ClickHouse](https://swe.quest/articles/longbridge-technology-simplifies-their-architecture-and-achieves-10x-e3a982c02b6e4b33.md): ClickHouse · 2025-03-17 · Medium · 8 min read · Analytics & OLAP, Databases, PostgreSQL, Payments & fintech
  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.
- [Ongage's Strategic Shift to ClickHouse for Real-time Email Marketing](https://swe.quest/articles/ongage-s-strategic-shift-to-clickhouse-for-real-time-email-marketing-dfca8e1a38de318e.md): ClickHouse · 2023-08-24 · Easy · 7 min read · Analytics & OLAP, MySQL, Databases, Cloud platforms
  Ongage, an email and SMS marketing automation company processing about half a billion messages a day, moved its campaign analytics and automation reporting from a large AWS RDS MySQL cluster (alongside MongoDB and Redshift) to ClickHouse Cloud.
- [Lago - Using ClickHouse to Scale an Events Engine](https://swe.quest/articles/lago-using-clickhouse-to-scale-an-events-engine-c476ec4bca3b5c9d.md): ClickHouse · 2024-05-29 · Medium · 7 min read · Analytics & OLAP, PostgreSQL, Payments & fintech, Performance engineering, Databases
  Lago, an open-source usage-based billing platform ingesting millions of events per minute, moved its streamed billable events from Postgres to ClickHouse Cloud and kept Postgres for all other transactional data.
- [How Real Estate Analytics made its data pipeline 50x faster with ClickHouse](https://swe.quest/articles/how-real-estate-analytics-made-its-data-pipeline-50x-faster-with-clickhouse-db89e32ee24fd3bf.md): ClickHouse · 2025-04-24 · Easy · 6 min read · Analytics & OLAP, Data pipelines, Databases, Performance engineering
  Real Estate Analytics replaced a MongoDB-based architecture with ClickHouse to serve user-selectable slicing across 200+ columns on 3-20 million row tables.
- [PostgreSQL + ClickHouse as the Open Source unified data stack](https://swe.quest/articles/postgresql-clickhouse-as-the-open-source-unified-data-stack-2760f19ba52907df.md): ClickHouse · 2026-01-27 · Easy · 5 min read · PostgreSQL, Analytics & OLAP, Event-driven architecture, Replication
  An open source stack pairs PostgreSQL as the transactional system of record with ClickHouse for analytics, connected by PeerDB for change data capture and the pg\_clickhouse extension, which transparently offloads analytical queries from Postgres to ClickHouse.

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)
