---
title: "ClickHouse Fiddle — A SQL Playground for ClickHouse"
description: "ClickHouse Fiddle is an open-source SQL playground that runs arbitrary queries, including DDL and writes, against any ClickHouse version and produces a shareable link to the results."
url: "https://swe.quest/articles/clickhouse-fiddle-a-sql-playground-for-clickhouse-18f2ea178f29552a"
canonical: "https://clickhouse.com/blog/clickhouse-fiddle-sql-playground"
source: "ClickHouse"
published: "2023-01-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["containers","system-design","analytics","open-source"]
---

# ClickHouse Fiddle — A SQL Playground for ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-01-20, 5 min read, Case study. Original: [https://clickhouse.com/blog/clickhouse-fiddle-sql-playground](https://clickhouse.com/blog/clickhouse-fiddle-sql-playground)

## Summary

ClickHouse Fiddle is an open-source SQL playground that runs arbitrary queries, including DDL and writes, against any ClickHouse version and produces a shareable link to the results. Each request starts an ephemeral Docker container on a runner machine. A custom lightweight coordinator load-balances across runners, preferring those that already have the image pulled, then kills the container after execution and stores results. This trades some startup latency (p90 around 2 seconds on hot versions) for far lower resource use than always-on instances, and the custom coordinator was chosen over Kubernetes for simplicity and speed.

Written by swe.quest, not by the author.

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

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- Docker containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

ClickHouse, ClickHouse Fiddle, Docker, ClickHouse Play, cgroups

## Related posts

- [Announcing the new ClickHouse SQL Playground](https://swe.quest/articles/announcing-the-new-clickhouse-sql-playground-3d79733825c39f99.md): ClickHouse · 2024-10-31 · Medium · 7 min read · Analytics & OLAP, Frontend, API design
  sql.clickhouse.com is a new public SQL playground offering over 35 datasets (60 TB) and 220 example queries, with syntax highlighting, autocomplete, query parameters, basic charting via Apache ECharts and shareable links.
- [Building ClickCannon - a tool for benchmarking ClickHouse](https://swe.quest/articles/building-clickcannon-a-tool-for-benchmarking-clickhouse-15503a1f117264f6.md): ClickHouse · 2026-06-11 · Medium · 16 min read · Performance engineering, Go, Analytics & OLAP, Observability, Concurrency
  ClickCannon is an open-source Go tool for benchmarking ClickHouse insert and query workloads, built to produce hardware sizing recommendations for ClickStack observability deployments.
- [How Fountain rebuilt its data plane on ClickHouse Cloud to power Cue, the Frontline Superintelligence](https://swe.quest/articles/how-fountain-rebuilt-its-data-plane-on-clickhouse-cloud-to-power-cue-the-0dccb4dc5f23d9f5.md): ClickHouse · 2026-09-22 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Event-driven architecture, Multi-tenancy, AI agents
  Fountain replaced a multi-vendor batch pipeline (third-party replication to S3/Iceberg, then BigQuery) with ClickPipes CDC streaming Postgres and MongoDB directly into ClickHouse Cloud, cutting analytics freshness from three hours to under two minutes, with most queries sub-second, at about 66% lower cost.
- [clickhouse.build: An agentic CLI to accelerate Postgres apps with ClickHouse](https://swe.quest/articles/clickhouse-build-an-agentic-cli-to-accelerate-postgres-apps-with-clickhouse-a4f92c15e2d9b3be.md): ClickHouse · 2025-12-02 · Medium · 9 min read · AI agents, Analytics & OLAP, PostgreSQL, TypeScript, AI for coding
  clickhouse.build is an open source agentic CLI that adds ClickHouse to Postgres-backed TypeScript apps for analytical queries while leaving transactional work in Postgres.
- [clickhousectl v0.2.0: Postgres, ClickPipes and more](https://swe.quest/articles/clickhousectl-v0-2-0-postgres-clickpipes-and-more-78a4d21808758ecd.md): ClickHouse · 2026-05-20 · Medium · 5 min read · Developer tools, Analytics & OLAP, PostgreSQL, Data pipelines, Cloud platforms
  clickhousectl v0.2.0 adds Postgres management, both local (Docker-backed, keyed on name and major version 16–18) and as ClickHouse Cloud managed 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)
