---
title: "SQL"
description: "Writing or optimizing SQL queries, SQL dialects"
url: "https://swe.quest/tags/sql?per=96"
---

# SQL

Topic in Languages: Writing or optimizing SQL queries, SQL dialects

By difficulty: [Easy](https://swe.quest/tags/sql.md?difficulty=easy) · [Medium](https://swe.quest/tags/sql.md?difficulty=medium) · [Hard](https://swe.quest/tags/sql.md?difficulty=hard)

Posts 1–96 of 247, page 1 of 3, newest first.

## 2026-11-25

- [Hints and hazards: pg\_plan\_advice in PG19](https://swe.quest/articles/hints-and-hazards-pg-plan-advice-in-pg19-94b7939260d49157.md): ClickHouse · 2026-11-25 · Medium · 13 min read · PostgreSQL, Query engines, Performance engineering, SQL
  Postgres 19 adds two contrib modules for query hints: pg\_plan\_advice, which applies advice per session via SET, and pg\_stash\_advice, which attaches advice to specific query identifiers.
- [I Don’t Want a Lesson in Computer Science!](https://swe.quest/articles/i-don-t-want-a-lesson-in-computer-science-864d0c19c5134d71.md): DuckDB · 2026-11-25 · Medium · 43 min read · SQL, LLMs, Analytics & OLAP
  Star Trek: The Next Generation scenes where the crew queries the ship's computer were re-enacted using Claude as a natural-language-to-SQL translator over a synthetic DuckDB database built so that correct queries reproduce the on-screen answers.

## 2026-11-24

- [The side quest that freed 10% of our database](https://swe.quest/articles/the-side-quest-that-freed-10-of-our-database-649662623bb94a1e.md): incident.io · 2026-11-24 · Medium · 13 min read · PostgreSQL, Query engines, Performance engineering, SQL
  A single lateral-join query answering "who's on call for this rotation layer right now" consumed 34% of incident.io's Postgres replica CPU.

## 2026-11-18

- [The day the sky emptied: rendering the FAA outage with ClickHouse FORMAT PNG](https://swe.quest/articles/the-day-the-sky-emptied-rendering-the-faa-outage-with-clickhouse-format-png-5517090c4ee462b9.md): ClickHouse · 2026-11-18 · Medium · 13 min read · Analytics & OLAP, SQL, Maps & geospatial, Databases
  ClickHouse's built-in FORMAT PNG output renders an animated map of the November 13, 2026 FAA outage directly from SQL, with no plotting library.

## 2026-11-17

- [ClickHouse forecasting and anomaly detection with time series foundation models](https://swe.quest/articles/clickhouse-forecasting-and-anomaly-detection-with-time-series-foundation-models-71a24c218275d2ec.md): ClickHouse · 2026-11-17 · Medium · 11 min read · Analytics & OLAP, Machine learning, Inference & serving, SQL
  TimesFM 3.0, a pretrained time-series foundation model, can be called from ClickHouse SQL via executable Python UDFs that forward arrays to an HTTP model server, giving zero-shot forecasts and anomaly scores without per-series training.
- [DuckDB User Group Workshop on AI-Powered Review Analysis with Hugging Face](https://swe.quest/articles/duckdb-user-group-workshop-on-ai-powered-review-analysis-with-hugging-face-db5478e73c7e0e03.md): DuckDB · 2026-11-17 · Medium · 3 min read · Analytics & OLAP, LLMs, SQL, Data pipelines
  A one-afternoon workshop pipeline uses DuckDB to find Amazon appliance products whose ratings fell most in the last six months across 2.1 million reviews, then sends only the 40 most helpful recent complaints to an LLM that groups them into themes with safety issues first.

## 2026-11-11

- [Bring high-performance analytics to your lakehouse with ClickHouse and Amazon S3 Tables](https://swe.quest/articles/bring-high-performance-analytics-to-your-lakehouse-with-clickhouse-and-amazon-e72cad2c2b1429a9.md): ClickHouse · 2026-11-11 · Medium · 11 min read · Analytics & OLAP, Cloud platforms, SQL
  ClickHouse's DataLakeCatalog engine connects to Amazon S3 Tables through the Iceberg REST endpoint, exposing a table bucket as a ClickHouse database that can be queried in place and written back to, with no data copied out.

## 2026-11-10

- [Ducks in a Column](https://swe.quest/articles/ducks-in-a-column-ce42623eb848a791.md): DuckDB · 2026-11-10 · Medium · 12 min read · SQL, Analytics & OLAP, Query engines
  DuckDB stores data by column and processes it in vectors of 2,048 values, which drives its compression, projection pushdown and aggregation speed.

## 2026-11-06

- [ClickHouse release 26.10](https://swe.quest/articles/clickhouse-release-26-10-f1505265758ca672.md): ClickHouse · 2026-11-06 · Medium · 23 min read · Analytics & OLAP, SQL, Query engines
  ClickHouse 26.10 ships 104 features, 225 performance optimizations and 739 bug fixes.

## 2026-10-29

- [From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB](https://swe.quest/articles/from-spreadsheets-to-ducklake-a-data-engineer-s-road-to-duckdb-befcab104cb9bbfa.md): DuckDB · 2026-10-29 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Databases, SQL
  Data engineer Matt Martin traces his path from copy-pasting Excel reports through Teradata, BigQuery and heavyweight Spark clusters to DuckDB, which let him query local CSVs, S3 Parquet files and Iceberg tables in a few lines of SQL with no JVM or cluster.

## 2026-10-27

- [The Agentic Analytics Benchmark: ranking tables and labeling failures with Jev](https://swe.quest/articles/the-agentic-analytics-benchmark-ranking-tables-and-labeling-failures-with-jev-07d829d8338b82f5.md): ClickHouse · 2026-10-27 · Medium · 15 min read · Evaluation, AI agents, LLMs, SQL, Analytics & OLAP
  Jev, a typed classifier model returning calibrated answers in 70-500 ms, was applied to the Agentic Analytics Benchmark for two jobs: labeling failed text-to-SQL agent runs and ranking warehouse tables per question.

## 2026-10-26

- [Gems of DuckDB 2.0.0](https://swe.quest/articles/gems-of-duckdb-2-0-0-0cf205137ec12582.md): DuckDB · 2026-10-26 · Medium · 8 min read · Databases, SQL, Analytics & OLAP, Python
  DuckDB 2.0.0 LTS includes a set of smaller features beyond its headline items.

## 2026-10-20

- [The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5](https://swe.quest/articles/the-agentic-analytics-benchmark-round-two-gpt-6-claude-opus-5-5-claude-sonnet-5-f67c49a44d812e12.md): ClickHouse · 2026-10-20 · Medium · 9 min read · Evaluation, AI agents, LLMs, Analytics & OLAP, SQL
  Five new models (GPT-6 Astra, Luna, Sol, Claude Opus 5.5 and Claude Sonnet 5.5) were added to a frozen 201-question agentic text-to-SQL benchmark over a synthetic ClickHouse warehouse.

## 2026-10-14

- [From 2,500 requests to 24: Rebuilding star history without the stargazers](https://swe.quest/articles/from-2-500-requests-to-24-rebuilding-star-history-without-the-stargazers-7995b4a68a7c537d.md): GitHub Engineering · 2026-10-14 · Medium · 7 min read · API design, SQL, Databases, Performance engineering, Privacy
  GitHub replaced identity-bearing stargazer pagination with an aggregate star-history endpoint that returns up to 30 weeks of daily star counts per request, with no usernames attached.
- [Sequences and other volatiles in Neki](https://swe.quest/articles/sequences-and-other-volatiles-in-neki-867c9857ecacbacb.md): PlanetScale · 2026-10-14 · Hard · 14 min read · Query engines, PostgreSQL, Distributed databases, SQL
  Neki, PlanetScale's sharded Postgres, implements Postgres sequences by classifying sequence operations like nextval() as router-only, with an authoritative shard hosting all sequences so values are never duplicated across shards.

## 2026-09-30

- [pg\_clickhouse & chdb updates: Encoding, nesting, and types](https://swe.quest/articles/pg-clickhouse-chdb-updates-encoding-nesting-and-types-54018d870fc3076b.md): ClickHouse · 2026-09-30 · Medium · 8 min read · PostgreSQL, Analytics & OLAP, Databases, SQL
  pg\_clickhouse v0.11.0 and the chdb extension v0.1.2 improve Postgres–ClickHouse type compatibility.

## 2026-09-24

- [Quail: Speeding up AI-SQL by jointly optimizing query planner and inference engine](https://swe.quest/articles/quail-speeding-up-ai-sql-by-jointly-optimizing-query-planner-and-inference-515cdcca6399e688.md): Modal · 2026-09-24 · Hard · 18 min read · Inference & serving, Query engines, LLMs, Performance engineering, SQL
  Quail is a query-aware inference layer that jointly optimizes AI-SQL query planning and LLM inference.

## 2026-09-23

- [ClickHouse release 26.9](https://swe.quest/articles/clickhouse-release-26-9-90b0394e74eeb570.md): ClickHouse · 2026-09-23 · Medium · 18 min read · Analytics & OLAP, SQL, Databases, Identity & auth
  ClickHouse 26.9 ships 56 new features, 135 performance optimizations and 464 bug fixes.

## 2026-09-11

- [AI Functions in ClickHouse: Upgrade your SQL to the AI age](https://swe.quest/articles/ai-functions-in-clickhouse-upgrade-your-sql-to-the-ai-age-11cec6552950f306.md): ClickHouse · 2026-09-11 · Medium · 12 min read · LLMs, SQL, RAG & retrieval, Analytics & OLAP, Cost optimization
  ClickHouse's beta AI Functions call LLM and embedding providers directly from SQL.

## 2026-09-10

- [Loading Parquet data into MySQL with ClickHouse](https://swe.quest/articles/loading-parquet-data-into-mysql-with-clickhouse-e9a6bbccc1c8e2b3.md): ClickHouse · 2026-09-10 · Medium · 6 min read · MySQL, Data pipelines, SQL
  MySQL has no native Parquet import, but clickhouse-local can read a Parquet file over HTTP with the \`url\` table function and write it straight into a MySQL table via \`INSERT INTO FUNCTION mysql(...)\`.
- [ClickHouse release 26.8](https://swe.quest/articles/clickhouse-release-26-8-2f8e67333d869615.md): ClickHouse · 2026-09-10 · Medium · 25 min read · Analytics & OLAP, SQL, Databases
  ClickHouse 26.8 is a long-term support release with 98 new features, 128 performance optimizations and 556 bug fixes.

## 2026-09-05

- [ClickHouse as a streaming HTTP API](https://swe.quest/articles/clickhouse-as-a-streaming-http-api-20b4965fc67cb6c7.md): ClickHouse · 2026-09-05 · Medium · 16 min read · Analytics & OLAP, API design, SQL
  ClickHouse 26.8 can serve a parameterized HTTP API directly, removing the thin API layer often placed in front of it.

## 2026-09-04

- [Pipelined SQL in ClickHouse 26.8](https://swe.quest/articles/pipelined-sql-in-clickhouse-26-8-36877655d79cc45a.md): ClickHouse · 2026-09-04 · Medium · 7 min read · SQL, Analytics & OLAP, Query engines
  ClickHouse 26.8 adds pipelined SQL via a \`|\>\` operator that lets queries be written as a sequence of transformations (FROM, WHERE, AGGREGATE, EXTEND, ORDER BY, LIMIT), building on the FROM-first syntax available since 22.12.
- [Build a real-time market data app with ClickHouse and Massive](https://swe.quest/articles/build-a-real-time-market-data-app-with-clickhouse-and-massive-0320c9b65a8a9694.md): ClickHouse · 2026-09-04 · Medium · 15 min read · Analytics & OLAP, Real-time systems, JavaScript, SQL, React
  A real-time tick data app can stream stock trades and quotes from Massive (formerly Polygon.io) over WebSockets straight into ClickHouse, with a Node.js backend and a React frontend for live visualization.

## 2026-09-01

- [The Agentic Analytics Benchmark: Measuring model accuracy and efficiency in analytical agents](https://swe.quest/articles/the-agentic-analytics-benchmark-measuring-model-accuracy-and-efficiency-in-bf2a6cccc514f79e.md): ClickHouse · 2026-09-01 · Medium · 19 min read · Evaluation, AI agents, LLMs, Analytics & OLAP, SQL
  data-agent-mnist is an open harness for benchmarking agentic analytics, built from 201 real questions from ClickHouse's internal agent DWAINE and replayed against a deterministically seeded, anonymized synthetic reconstruction of their dbt warehouse (18 tables, 865 columns).

## 2026-08-24

- [Optimizing Redshift Write Patterns: Tackling Tombstones and Ghost Rows](https://swe.quest/articles/optimizing-redshift-write-patterns-tackling-tombstones-and-ghost-rows-0fcf77762d2bfabb.md): Wealthfront Engineering · 2026-08-24 · Medium · 8 min read · Analytics & OLAP, Storage engines, Data pipelines, Performance engineering, SQL
  Repeated DELETE FROM + COPY snapshot reloads in Amazon Redshift left some tables with up to 90% ghost rows, about 22 billion rows on disk for 2.4 billion live ones.

## 2026-08-11

- [What's new in pg\_clickhouse v0.10.0: Subqueries, TPC-H Speedups, C Driver, and Aggregates](https://swe.quest/articles/what-s-new-in-pg-clickhouse-v0-10-0-subqueries-tpc-h-speedups-c-driver-and-178ced76a7784be7.md): ClickHouse · 2026-08-11 · Hard · 11 min read · PostgreSQL, Query engines, Analytics & OLAP, SQL, Performance engineering
  pg\_clickhouse v0.10.0 pushes correlated scalar subqueries, IN and NOT IN down to ClickHouse as remote subqueries and anti/semi-joins, raising full TPC-H pushdown from 12 to 16 of 22 queries.

## 2026-08-10

- [Postgres SELECT DISTINCT Does Not Scale](https://swe.quest/articles/postgres-select-distinct-does-not-scale-d7d1eb15cb6eae99.md): DBOS · 2026-08-10 · Medium · 5 min read · PostgreSQL, Query engines, SQL, Performance engineering
  Postgres SELECT DISTINCT always scans every index entry matching its predicates, so its cost grows with total matching rows rather than with the number of distinct values.

## 2026-08-03

- [Institutional knowledge doesn't scale: Building an agentic data analyst](https://swe.quest/articles/institutional-knowledge-doesn-t-scale-building-an-agentic-data-analyst-d1fa65e5edaa8194.md): incident.io · 2026-08-03 · Medium · 10 min read · AI agents, Analytics & OLAP, LLMs, Observability, SQL
  incident.io built an internal "data brain" agent that answers business questions against BigQuery by encoding institutional analyst knowledge rather than relying on raw text-to-SQL.

## 2026-07-15

- [Replacing the HDB: ClickHouse for historical ticker data](https://swe.quest/articles/replacing-the-hdb-clickhouse-for-historical-ticker-data-cd7a8f768807547b.md): ClickHouse · 2026-07-15 · Medium · 19 min read · Analytics & OLAP, SQL, Databases, Performance engineering
  ClickHouse can serve as the historical tier (HDB) of a market data system, a low-risk place to adopt a new database.

## 2026-07-03

- [ClickHouse Release 26.6](https://swe.quest/articles/clickhouse-release-26-6-b9d6c69704516f2f.md): ClickHouse · 2026-07-03 · Medium · 13 min read · Analytics & OLAP, Databases, Query engines, SQL
  ClickHouse 26.6 ships 56 features, 79 performance optimizations and 366 bug fixes, marking ten years of ClickHouse as open source.

## 2026-07-01

- [How Artemis Security runs 69x faster detection queries with ClickHouse Cloud](https://swe.quest/articles/how-artemis-security-runs-69x-faster-detection-queries-with-clickhouse-cloud-9e25fd4724aa15b1.md): ClickHouse · 2026-07-01 · Medium · 8 min read · Analytics & OLAP, Performance engineering, Threat detection, AI agents, SQL
  Artemis, an AI-native threat detection platform ingesting terabytes of logs daily, sped up its ClickHouse Cloud workload with three techniques.

## 2026-06-10

- [Metric Semantic Layer: How Lyft Governs and Scales Key Data Definitions](https://swe.quest/articles/metric-semantic-layer-how-lyft-governs-and-scales-key-data-definitions-cb56db8cd5933bc9.md): Lyft Engineering · 2026-06-10 · Medium · 6 min read · Analytics & OLAP, Data pipelines, SQL, Python, AI agents
  Lyft built a Metric Semantic Layer (MSL), a versioned Python package that stores each company-wide "Golden Metric" as YAML metadata plus Jinja-templated SQL, so a definition is updated once and flows to every downstream consumer.

## 2026-06-03

- [How ClickHouse became fast at joins](https://swe.quest/articles/how-clickhouse-became-fast-at-joins-68de042e0ff6c22e.md): ClickHouse · 2026-06-03 · Hard · 15 min read · Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickHouse became 26× faster on the join-heavy TPC-H SF100 workload between 22.4 and 26.4.

## 2026-06-01

- [ClickHouse Release 26.5](https://swe.quest/articles/clickhouse-release-26-5-7752e98141c4074d.md): ClickHouse · 2026-06-01 · Medium · 15 min read · Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickHouse 26.5 ships 38 features, 51 performance optimizations and 224 bug fixes.

## 2026-05-30

- [Executable UDFs are now in public beta on ClickHouse Cloud](https://swe.quest/articles/executable-udfs-are-now-in-public-beta-on-clickhouse-cloud-89bd8753f4dda600.md): ClickHouse · 2026-05-30 · Medium · 14 min read · Analytics & OLAP, Inference & serving, Machine learning, SQL, Python
  Executable UDFs are in public beta on ClickHouse Cloud: you upload a zipped Python function with its model files, and ClickHouse runs it in a pool of long-lived sandboxed processes that can be called from SQL, including inside materialized views.

## 2026-05-22

- [Native random sampling in ClickHouse](https://swe.quest/articles/native-random-sampling-in-clickhouse-b04e18e64b8c1545.md): ClickHouse · 2026-05-22 · Medium · 11 min read · Analytics & OLAP, Query engines, Performance engineering, SQL
  ClickHouse's SAMPLE clause runs aggregations over a deterministic subset of rows selected by a hash-based sample key, which must be part of the primary key so granules above the hash threshold can be skipped.

## 2026-05-19

- [What's new in ClickStack - April 2026](https://swe.quest/articles/what-s-new-in-clickstack-april-2026-8ecf13fb74019726.md): ClickHouse · 2026-05-19 · Medium · 13 min read · Observability, Analytics & OLAP, SQL, Performance engineering
  ClickStack's April 2026 release adds alerts driven by arbitrary ClickHouse SQL, so rolling baselines and standard-deviation anomaly checks can be written with window functions and fire when the query returns 1.

## 2026-05-13

- [ClickStack SQL Charting and Alerting](https://swe.quest/articles/clickstack-sql-charting-and-alerting-065ba971d00da162.md): ClickHouse · 2026-05-13 · Medium · 9 min read · Observability, SQL, Analytics & OLAP
  ClickStack now supports charts and alerts defined by arbitrary ClickHouse SQL, going beyond what predefined query builders can express.

## 2026-05-12

- [ClickHouse Cloud: Fast, Updatable Lookups with the Join Table Engine](https://swe.quest/articles/clickhouse-cloud-fast-updatable-lookups-with-the-join-table-engine-b50f6e80ec781fcd.md): ClickHouse · 2026-05-12 · Medium · 6 min read · Analytics & OLAP, Databases, SQL, Cloud platforms
  ClickHouse's Join table engine keeps a precomputed in-memory hash map for a fixed join strictness, type and key.
- [Turso v0.6.0](https://swe.quest/articles/turso-v0-6-0-5eb94c2c93fd0b4b.md): Turso · 2026-05-12 · Medium · 12 min read · SQLite, Databases, SQL, Storage engines
  Turso 0.6 is the first release supporting all major SQLite features, adding experimental multi-process WAL access (OFD locks on Linux, fcntl elsewhere, IOCP on Windows) and VACUUM/VACUUM INTO.

## 2026-05-08

- [ClickHouse Release 26.4](https://swe.quest/articles/clickhouse-release-26-4-f4f5532396f893cd.md): ClickHouse · 2026-05-08 · Medium · 10 min read · Analytics & OLAP, SQL, Query engines, Performance engineering
  ClickHouse 26.4 ships 39 features, 45 performance optimizations and 238 bug fixes, led by SQL-compatibility additions: VALUES as a table expression with column aliases, PostgreSQL-style EXTRACT units, SET TIME ZONE, NATURAL JOIN and compound INTERVAL literals.

## 2026-04-14

- [What's new in ClickStack - March 2026](https://swe.quest/articles/what-s-new-in-clickstack-march-2026-6679d9e481e7bb58.md): ClickHouse · 2026-04-14 · Medium · 12 min read · Observability, Analytics & OLAP, SQL
  ClickStack's March 2026 update reworks Event Deltas for root-cause analysis.

## 2026-04-07

- [Write SQL Your Way: Dual Parameter Style Benefits in mssql-python](https://swe.quest/articles/write-sql-your-way-dual-parameter-style-benefits-in-mssql-python-5967e83bc5a08c68.md): Microsoft for Python Developers · 2026-04-07 · Medium · 7 min read · Python, SQL, Databases, API design
  mssql-python, Microsoft's Python driver for SQL Server and Azure SQL, now accepts both DB-API qmark (?) and pyformat (%(name)s) parameter styles, choosing between them by whether a tuple/list or a dict is passed.
- [ClickHouse Release 26.3](https://swe.quest/articles/clickhouse-release-26-3-ea6c8bff46efb19b.md): ClickHouse · 2026-04-07 · Medium · 15 min read · Analytics & OLAP, Query engines, Storage engines, SQL, WebAssembly
  ClickHouse 26.3 ships 27 features, 40 performance optimizations and 202 bug fixes.

## 2026-03-26

- [Top 10 best practices tips for ClickHouse](https://swe.quest/articles/top-10-best-practices-tips-for-clickhouse-4df5699bf7bd75dd.md): ClickHouse · 2026-03-26 · Medium · 21 min read · Analytics & OLAP, Performance engineering, Databases, SQL
  Ten practices for getting performance and storage efficiency out of ClickHouse, each measured on a 150M-row Amazon reviews dataset.

## 2026-03-25

- [ClickHouse is data lake ready](https://swe.quest/articles/clickhouse-is-data-lake-ready-bebd3b2969b76478.md): ClickHouse · 2026-03-25 · Medium · 13 min read · Analytics & OLAP, Data pipelines, SQL, Query engines
  ClickHouse now queries Apache Iceberg and Delta Lake tables in place on S3, GCS and Azure, either directly or through catalogs such as AWS Glue, Unity, Polaris, BigLake, OneLake and Iceberg REST.

## 2026-03-23

- [When upserts don’t update but still write: Debugging Postgres performance at scale](https://swe.quest/articles/when-upserts-don-t-update-but-still-write-debugging-postgres-performance-at-cd64ef72ac9ca8ec.md): Datadog Engineering · 2026-03-23 · Medium · 11 min read · PostgreSQL, Performance engineering, Storage engines, Debugging, SQL
  A Postgres \`INSERT ... ON CONFLICT DO UPDATE ... WHERE\` upsert still locks the conflicting row even when the WHERE clause blocks the update.

## 2026-03-20

- [Querying DateTimes in ClickHouse](https://swe.quest/articles/querying-datetimes-in-clickhouse-2cdba42b9ef08c40.md): ClickHouse · 2026-03-20 · Medium · 8 min read · SQL, Analytics & OLAP, Time & clocks
  ClickHouse's datetime functions cover rounding, filtering and duration calculations, demonstrated on about 3 million NYC taxi trips. toStartOfHour and toStartOfFifteenMinutes bucket timestamps, casting to ::Time groups or filters by time of day across all dates, and dateDiff computes trip durations to derive average speed, which falls from about 19 mph at 6am to about 11 mph by 8:30am. countIf with toDayOfWeek splits weekday and weekend trips, and the lag window function computes percentage change between windows. formatDateTime and bar make the output readable.

## 2026-03-18

- [How ClickStack makes ClickHouse faster for observability](https://swe.quest/articles/how-clickstack-makes-clickhouse-faster-for-observability-323b8d19e17244d4.md): ClickHouse · 2026-03-18 · Medium · 21 min read · Observability, Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickStack speeds up ClickHouse for observability by generating and rewriting queries to fit how the engine stores, prunes and processes data, instead of passing raw SQL through.

## 2026-03-12

- [5 ways to parse Dates and DateTimes in ClickHouse](https://swe.quest/articles/5-ways-to-parse-dates-and-datetimes-in-clickhouse-af81329ee4e38796.md): ClickHouse · 2026-03-12 · Medium · 4 min read · Analytics & OLAP, SQL, Time & clocks
  ClickHouse offers five main routes for turning raw values into Date/DateTime types. \`fromUnixTimestamp\` and its 64Milli/64Micro variants convert epoch timestamps to \`DateTime\` or \`DateTime64(3/6)\`.
- [What's new in ClickStack. February '26.](https://swe.quest/articles/what-s-new-in-clickstack-february-26-b8dbb2dbfeb0032c.md): ClickHouse · 2026-03-12 · Medium · 13 min read · Observability, Analytics & OLAP, SQL, Performance engineering
  ClickStack's February 2026 update adds ClickStack resources (dashboards, alerts, sources, webhooks) to the ClickHouse Cloud OpenAPI for configuration-as-code, embeds the ClickStack UI in the ClickHouse 26.2 binary at /clickstack for about 4.1 MB, and introduces a raw SQL mode for table visualizations with injected time-range parameters, enabling joins across logs and traces.

## 2026-03-04

- [State of Geospatial in ClickHouse in March 2026](https://swe.quest/articles/state-of-geospatial-in-clickhouse-in-march-2026-8ba2f9b2ba169467.md): ClickHouse · 2026-03-04 · Medium · 29 min read · Maps & geospatial, Analytics & OLAP, SQL, Databases
  ClickHouse's geospatial support has grown from early distance functions to over 90 functions, grid indexes (geohash, H3, S2), and geometry types (Point, Ring, LineString, MultiLineString, Polygon, MultiPolygon) implemented as aliases over Tuple and Array.

## 2026-03-03

- [Using ClickHouse as a webhook endpoint with HMAC verification](https://swe.quest/articles/using-clickhouse-as-a-webhook-endpoint-with-hmac-verification-e66d732ddcb02589.md): ClickHouse · 2026-03-03 · Medium · 6 min read · Analytics & OLAP, SQL, Identity & auth, Event-driven architecture
  ClickHouse 25.12's new HMAC function lets a ClickHouse HTTP endpoint verify webhook signatures directly in SQL.

## 2026-02-25

- [ClickHouse Fivetran Destination moves to Beta](https://swe.quest/articles/clickhouse-fivetran-destination-moves-to-beta-4779b917ab081e2d.md): ClickHouse · 2026-02-25 · Medium · 11 min read · Analytics & OLAP, Data pipelines, SQL, Performance engineering
  The Fivetran destination for ClickHouse Cloud is now in beta and adds History Mode, which implements SCD Type 2 by inserting a new row per change with \_fivetran\_active, \_fivetran\_start and \_fivetran\_end columns, enabling point-in-time snapshots, change tracking and audit queries.

## 2026-02-18

- [Redefining impact as a data scientist](https://swe.quest/articles/redefining-impact-as-a-data-scientist-ab84e5fe086a75c9.md): Figma · 2026-02-18 · Medium · 9 min read · Testing, Payments & fintech, Observability, Engineering culture, SQL
  On Figma's billing infrastructure, data science work centered on making a complex, stateful system legible and correct rather than on experiments.

## 2026-01-20

- [Christmas gifts from the ClickHouse engineering team](https://swe.quest/articles/christmas-gifts-from-the-clickhouse-engineering-team-0bd7782a3aa80a52.md): ClickHouse · 2026-01-20 · Medium · 7 min read · Analytics & OLAP, Query engines, Performance engineering, SQL
  ClickHouse 25.12 ships a batch of end-of-year improvements, from client usability tweaks (digit-group highlighting in the prompt, per-row readable numeric hints) to query engine optimizations. distinctJSONPaths now merges per-part JSON path metadata instead of decoding column data, cutting a 10M-row BlueSky query from 4.56 s to 82 ms. DISTINCT on LowCardinality columns now works on dictionary IDs with early exit, typically 2-6x faster, but slower on a sorting-key column where unique values are spread across the whole table.

## 2026-01-08

- [Behind the music: How Chartmetric is scaling music analytics with ClickHouse](https://swe.quest/articles/behind-the-music-how-chartmetric-is-scaling-music-analytics-with-clickhouse-8636babde296e87c.md): ClickHouse · 2026-01-08 · Medium · 7 min read · Analytics & OLAP, Performance engineering, Databases, SQL
  Chartmetric moved time-series and playlist workloads from Postgres and Snowflake to ClickHouse Cloud, cutting RDS storage from 28 TB to 18 TB and bringing queries that timed out at 60 seconds down to under 3 seconds.

## 2025-12-31

- [Solving the "Impossible" in ClickHouse: Advent of Code 2025](https://swe.quest/articles/solving-the-impossible-in-clickhouse-advent-of-code-2025-a7dba91c6e7476ad.md): ClickHouse · 2025-12-31 · Medium · 42 min read · SQL, Analytics & OLAP, Algorithms
  All 12 Advent of Code 2025 puzzles are solved in pure ClickHouse SQL, each as a single query that parses the raw input and computes both parts with no UDFs, temporary tables or preprocessing.

## 2025-12-30

- [What's new in ClickStack. December '25.](https://swe.quest/articles/what-s-new-in-clickstack-december-25-c182e3421d3be356.md): ClickHouse · 2025-12-30 · Medium · 8 min read · Observability, Analytics & OLAP, Query engines, Performance engineering, SQL
  ClickStack's HyperDX UI can now use ClickHouse Incremental Materialized Views registered against a source to accelerate charts, searches, histograms and dashboards, even when filters are applied.

## 2025-12-23

- [New functions you might have missed in 2025](https://swe.quest/articles/new-functions-you-might-have-missed-in-2025-ca5770734de4b408.md): ClickHouse · 2025-12-23 · Medium · 9 min read · Analytics & OLAP, SQL, Databases
  ClickHouse added 119 SQL functions across its 2025 releases, and the system.functions table's introduced\_in column can be queried to list and count them per version.

## 2025-12-19

- [Sync Stripe Data to Your Supabase Database in One Click](https://swe.quest/articles/sync-stripe-data-to-your-supabase-database-in-one-click-b7cbed62c6a06c5c.md): Supabase · 2025-12-19 · Medium · 5 min read · Payments & fintech, PostgreSQL, Data pipelines, SQL
  Supabase now offers a one-click Stripe Sync Engine integration that copies Stripe customers, subscriptions, invoices and payments into real Postgres tables, kept current via webhooks plus scheduled backfills run through pgmq-based Supabase Queues and Edge Functions with retries.

## 2025-12-10

- [Introducing pg\_clickhouse: A Postgres extension for querying ClickHouse](https://swe.quest/articles/introducing-pg-clickhouse-a-postgres-extension-for-querying-clickhouse-98de49fb9ae8bb75.md): ClickHouse · 2025-12-10 · Medium · 11 min read · PostgreSQL, Query engines, Analytics & OLAP, SQL
  pg\_clickhouse v0.1.0 is an Apache 2-licensed PostgreSQL foreign data wrapper, derived from clickhouse\_fdw, that runs analytics queries on ClickHouse from Postgres so existing queries can work unmodified by changing search\_path.

## 2025-12-04

- [What's new in ClickStack. November '25.](https://swe.quest/articles/what-s-new-in-clickstack-november-25-dac1ac8df77ba941.md): ClickHouse · 2025-12-04 · Medium · 7 min read · Observability, Analytics & OLAP, SQL
  ClickStack's November release adds beta Service Maps, root span filtering, configurable highlighted attributes and trace attributes, native incident.io alert routing, Lucene search inside the trace waterfall, and previous-period overlays on line charts.

## 2025-11-13

- [Building StockHouse: Real-time market analytics with ClickHouse](https://swe.quest/articles/building-stockhouse-real-time-market-analytics-with-clickhouse-84e9bb5a68744806.md): ClickHouse · 2025-11-13 · Medium · 6 min read · Analytics & OLAP, Stream processing, SQL, Go
  StockHouse is a reference streaming analytics app that ingests live stock and crypto ticks from Massive's WebSocket APIs through a Go ingester into ClickHouse and renders them in a Vue dashboard built on Perspective.

## 2025-11-07

- [ClickHouse Release 25.10](https://swe.quest/articles/clickhouse-release-25-10-a4195d25b3b54d91.md): ClickHouse · 2025-11-07 · Medium · 17 min read · Query engines, Analytics & OLAP, Performance engineering, Vector search, SQL
  ClickHouse 25.10 focuses on JOIN performance, adding lazy columns replication (an index column pointing at the original data instead of copying duplicated values), runtime Bloom filters built from the right-side join keys and applied as PREWHERE on the left side for parallel hash joins, push-down of OR conditions that reference both join sides, and automatic column statistics via auto\_statistics\_types to feed join reordering.

## 2025-11-03

- [Global weather data from flying airplanes](https://swe.quest/articles/global-weather-data-from-flying-airplanes-cde04437bfc1d39f.md): ClickHouse · 2025-11-03 · Medium · 6 min read · Analytics & OLAP, SQL, Maps & geospatial
  Weather can be inferred from ADS-B airplane telemetry stored in ClickHouse by comparing air-relative and ground-relative measurements.

## 2025-10-20

- [Handling Time-Variant DAGs with Constraints in Postgres](https://swe.quest/articles/handling-time-variant-dags-with-constraints-in-postgres-1fba8d43f4c83cc3.md): Neon · 2025-10-20 · Medium · 7 min read · PostgreSQL, SQL, Data structures, Databases
  Vehicle attachments in a fleet (trucks pulling trailers) are modeled as a time-variant DAG in a single Postgres table of edges with validity intervals and a source-authority priority.

## 2025-10-15

- [If it’s in your catalog, you can query it: The DataLakeCatalog engine in ClickHouse Cloud](https://swe.quest/articles/if-it-s-in-your-catalog-you-can-query-it-the-datalakecatalog-engine-in-8d1562fe3bdf6842.md): ClickHouse · 2025-10-15 · Medium · 13 min read · Analytics & OLAP, Query engines, Cloud platforms, SQL
  ClickHouse's DataLakeCatalog database engine connects to lakehouse catalogs such as AWS Glue and Databricks Unity Catalog, reads their metadata, and automatically maps each table to the matching Iceberg or DeltaLake table engine.

## 2025-10-08

- [Unlocking Faster Insights with Experimenter-Defined Segmentations](https://swe.quest/articles/unlocking-faster-insights-with-experimenter-defined-segmentations-5bc18a2907719dbc.md): Etsy Code as Craft · 2025-10-08 · Medium · 10 min read · Data pipelines, Analytics & OLAP, SQL, System design
  Etsy replaced the 13 hard-coded segmentations in its Catapult experimentation platform with experimenter-defined ones, each modeled as a SQL query that assigns segment values plus a set of approved join columns.

## 2025-10-02

- [ClickHouse Release 25.9](https://swe.quest/articles/clickhouse-release-25-9-512577de2ea7d4de.md): ClickHouse · 2025-10-02 · Medium · 10 min read · Query engines, Analytics & OLAP, Performance engineering, Search, SQL
  ClickHouse 25.9 adds automatic global join reordering, which uses a greedy algorithm plus row-count estimates or manually created column statistics to pick build/probe order across many tables.

## 2025-09-26

- [Implementing a Kalman Filter in Postgres to Smooth GPS Data](https://swe.quest/articles/implementing-a-kalman-filter-in-postgres-to-smooth-gps-data-fd49bdbe30ebf6c9.md): Neon · 2025-09-26 · Medium · 5 min read · PostgreSQL, Maps & geospatial, SQL, Algorithms, Performance engineering
  A Kalman Filter can run entirely inside Postgres to smooth noisy GPS tracks, with per-device state (estimate plus covariance matrix) kept in a devices table and a kalman\_step SQL function applying predict/update steps that can use HDOP or speed.

## 2025-09-24

- [Trace similarity systems on top of ClickHouse to analyze crash stack traces from our CI](https://swe.quest/articles/trace-similarity-systems-on-top-of-clickhouse-to-analyze-crash-stack-traces-c60df248c0d43431.md): ClickHouse · 2025-09-24 · Medium · 9 min read · Debugging, CI/CD, SQL, Algorithms, Testing
  ClickHouse built a crash-deduplication pipeline for its CI that groups similar stack traces from fuzzing, stress and functional tests using the TraceSim similarity method, implemented almost entirely in ClickHouse SQL.

## 2025-08-21

- [The 10 Most Popular Postgres Extensions on Neon](https://swe.quest/articles/the-10-most-popular-postgres-extensions-on-neon-732f7020bbe3e6dc.md): Neon · 2025-08-21 · Easy · 5 min read · PostgreSQL, SQL, Databases
  The ten most installed Postgres extensions across Neon's platform are plpgsql and pg\_stat\_statements (each in 1M+ databases), followed by uuid-ossp, pgvector, pgcrypto, pg\_trgm, PostGIS, citext, unaccent and hstore.

## 2025-08-20

- [What's new in ClickStack. August '25.](https://swe.quest/articles/what-s-new-in-clickstack-august-25-f534024387a16f47.md): ClickHouse · 2025-08-20 · Medium · 7 min read · Observability, Analytics & OLAP, SQL, Performance engineering
  ClickStack's August 2025 update brings the HyperDX UI to ClickHouse Cloud in private preview with passwordless auth, leaving only the OTel collector to self-host.

## 2025-07-30

- [Introducing Read-Only Database Attach for SQLite in Turso](https://swe.quest/articles/introducing-read-only-database-attach-for-sqlite-in-turso-ea2634989cb273be.md): Turso · 2025-07-30 · Medium · 3 min read · SQLite, SQL, Databases
  Turso 0.1.3 adds read-only \`ATTACH DATABASE\`, letting a single session join across multiple SQLite databases without SQLite's default limit of 10 attached databases (hard maximum 125).

## 2025-07-24

- [How we built fast UPDATEs for the ClickHouse column store – Part 2: SQL-style UPDATEs](https://swe.quest/articles/how-we-built-fast-updates-for-the-clickhouse-column-store-part-2-sql-style-412c85fd8f57d493.md): ClickHouse · 2025-07-24 · Hard · 20 min read · Storage engines, Analytics & OLAP, Databases, SQL
  ClickHouse implemented standard SQL UPDATE in its MergeTree column store by evolving from classic mutations (which rewrite whole affected columns and hard-link unchanged ones) through lightweight DELETEs via a \_row\_exists mask column and on-the-fly in-memory updates, to patch parts.

## 2025-07-23

- [Policy Zones: How Meta enforces purpose limitation at scale in batch processing systems](https://swe.quest/articles/policy-zones-how-meta-enforces-purpose-limitation-at-scale-in-batch-processing-615adcc0c88f4c90.md): Meta Engineering · 2025-07-23 · Medium · 20 min read · Privacy, Data pipelines, Identity & auth, SQL
  Meta's Policy Zones, part of its Privacy Aware Infrastructure, applies information flow control to enforce purpose limitation across an exabyte-scale data warehouse.

## 2025-07-14

- [How to fix missing table errors in pg\_cron](https://swe.quest/articles/how-to-fix-missing-table-errors-in-pg-cron-3e70d0e00b3759de.md): Neon · 2025-07-14 · Medium · 8 min read · PostgreSQL, Scheduling, SQL
  pg\_cron stores scheduled jobs as raw SQL text, separate from Postgres' system catalogs, so dropping a table leaves jobs that fail every run with "relation does not exist" and fill cron.job\_run\_details with errors.
- [ClickHouse 25.6 summer bonus: CoalescingMergeTree table engine](https://swe.quest/articles/clickhouse-25-6-summer-bonus-coalescingmergetree-table-engine-dcf20257caf305cb.md): ClickHouse · 2025-07-14 · Medium · 8 min read · Analytics & OLAP, Storage engines, Databases, SQL
  CoalescingMergeTree, new in ClickHouse 25.6, consolidates sparse partial-row inserts during background merges by keeping, per sorting key and per column, the latest non-null value as determined by insertion order rather than a timestamp.

## 2025-07-03

- [Analyzing Wimbledon tennis data with chDB](https://swe.quest/articles/analyzing-wimbledon-tennis-data-with-chdb-6a28f96019de015f.md): ClickHouse · 2025-07-03 · Medium · 8 min read · Analytics & OLAP, SQL, Testing, Python
  Tennis scoring logic can be encoded as ClickHouse SQL user-defined functions that compute how many points each player needs to win a match, then applied to Wimbledon point-by-point data to show Alcaraz was never close to losing his five-set first-round match against Fognini.

## 2025-06-25

- [Join me if you can: ClickHouse vs. Databricks vs. Snowflake - Part 2](https://swe.quest/articles/join-me-if-you-can-clickhouse-vs-databricks-vs-snowflake-part-2-66aede87450dc5eb.md): ClickHouse · 2025-06-25 · Medium · 8 min read · Analytics & OLAP, Performance engineering, Query engines, SQL
  Replacing fact-to-dimension joins with in-memory dictionaries in ClickHouse Cloud sped up a 17-query join benchmark over 1.4 billion rows by 1.9–3.5× in total runtime, up to 6.6× on individual queries, and cut cost by up to 60%.

## 2025-06-04

- [Birds in the cloud](https://swe.quest/articles/birds-in-the-cloud-c6890083099fe6e2.md): ClickHouse · 2025-06-04 · Medium · 6 min read · Analytics & OLAP, Maps & geospatial, SQL
  The Cornell Lab of Ornithology's eBird dataset of 1.5 billion bird observations (a 58 GB zip holding a 440 GB CSV) can be loaded into ClickHouse and visualized on the adsb.exposed interactive map. clickhouse-local queries the CSV inside the zip with schema inference.

## 2025-05-27

- [Recreating S3 in Postgres using PostgREST](https://swe.quest/articles/recreating-s3-in-postgres-using-postgrest-d07b4a06448dac82.md): Neon · 2025-05-27 · Medium · 7 min read · PostgreSQL, API design, Identity & auth, SQL
  A simple S3-like file server can be built inside Postgres by storing binary data in a BYTEA table and exposing it through PostgREST's functions-as-RPC via the Neon Data API.

## 2025-05-09

- [ClickHouse Release 25.4](https://swe.quest/articles/clickhouse-release-25-4-70f4ff42cabe956e.md): ClickHouse · 2025-05-09 · Medium · 9 min read · Analytics & OLAP, Query engines, Performance engineering, SQL
  ClickHouse 25.4 adds lazy materialization, which defers reading column data until it is needed.

## 2025-05-08

- [Visualizing Foursquare places with ClickHouse](https://swe.quest/articles/visualizing-foursquare-places-with-clickhouse-7a2e9fe18ad158f7.md): ClickHouse · 2025-05-08 · Medium · 5 min read · Maps & geospatial, Analytics & OLAP, SQL
  The Foursquare open places dataset (about 100 million records) loads straight from S3 Parquet into ClickHouse in 42 seconds and 11 GB.

## 2025-03-29

- [Postgres Language Server: Initial Release](https://swe.quest/articles/postgres-language-server-initial-release-4b7148c84b3bcff0.md): Supabase · 2025-03-29 · Medium · 13 min read · PostgreSQL, Developer tools, Rust, SQL, Static analysis
  Postgres Language Server is an LSP implementation for Postgres offering autocompletion, syntax error highlighting, type-checking via PREPARE/EXPLAIN against a live database, and a Squawk-inspired linter, available for VSCode, Neovim and as a CLI.

## 2025-03-19

- [Accelerating ClickHouse queries on JSON data for faster Bluesky insights](https://swe.quest/articles/accelerating-clickhouse-queries-on-json-data-for-faster-bluesky-insights-cce6ed7a467f6449.md): ClickHouse · 2025-03-19 · Medium · 29 min read · Analytics & OLAP, Performance engineering, SQL, Databases
  Incremental materialized views feeding AggregatingMergeTree tables cut ClickHouse dashboard queries over 4+ billion Bluesky JSON documents (1.6 TiB) from 44–56 seconds to 3–7 ms. Partial aggregation states are computed only for newly inserted rows and merged in the background, so the pre-aggregated tables stay tiny (e.g. 892 rows, 11 KiB) and constant-size regardless of source growth.

## 2025-03-06

- [Postgres to ClickHouse: Data Modeling Tips V2](https://swe.quest/articles/postgres-to-clickhouse-data-modeling-tips-v2-421af33ac59693d5.md): ClickHouse · 2025-03-06 · Medium · 21 min read · Analytics & OLAP, PostgreSQL, Event-driven architecture, Replication, SQL
  Postgres CDC into ClickHouse (via PeerDB or ClickPipes) uses logical decoding and maps tables to ReplacingMergeTree.

## 2025-02-25

- [Postgres as a Graph Database: (Ab)using pgRouting](https://swe.quest/articles/postgres-as-a-graph-database-ab-using-pgrouting-eceed2225b3c0da2.md): Supabase · 2025-02-25 · Medium · 8 min read · PostgreSQL, Algorithms, SQL, Recommendations & ranking
  The pgRouting extension, usually paired with PostGIS for geospatial shortest-path queries, can serve as a lightweight graph layer in Postgres instead of Apache AGE or Neo4j.

## 2025-02-17

- [The Dangers of Testing in SQLite as a Postgres User](https://swe.quest/articles/the-dangers-of-testing-in-sqlite-as-a-postgres-user-e7593810c6b7484d.md): Neon · 2025-02-17 · Medium · 9 min read · Testing, PostgreSQL, SQLite, SQL
  Testing against SQLite when production runs Postgres gives false confidence.

## 2025-01-21

- [BuzzHouse: Bridging the database fuzzing gap for testing ClickHouse](https://swe.quest/articles/buzzhouse-bridging-the-database-fuzzing-gap-for-testing-clickhouse-7d42aa00b0761971.md): ClickHouse · 2025-01-21 · Medium · 8 min read · Testing, Databases, Analytics & OLAP, SQL
  BuzzHouse is a new ClickHouse fuzzer that generates complex but mostly semantically valid SQL backed by a tracked catalog of tables, filling a gap left by SQLsmith, SQLancer, the AST fuzzer and WINGFUZZ.

## 2025-01-15

- [Visualizing BlueSky data with Evidence.dev](https://swe.quest/articles/visualizing-bluesky-data-with-evidence-dev-2a64305ef654ddec.md): ClickHouse · 2025-01-15 · Medium · 6 min read · Analytics & OLAP, SQL
  Evidence.dev builds dashboards from SQL and markdown, running queries at build time rather than at request time.

## 2025-01-09

- [ClickHouse Release 24.12](https://swe.quest/articles/clickhouse-release-24-12-a4df30e6ccdd0296.md): ClickHouse · 2025-01-09 · Medium · 15 min read · Analytics & OLAP, Query engines, Performance engineering, SQL
  ClickHouse 24.12 adds LIKE and unknown-value equality/IN support for Enums, an experimental descending MergeTree sorting key, JSON subcolumns as primary key columns, Iceberg REST catalog (Unity, Polaris) and schema evolution support, and automatic JOIN side swapping via query\_plan\_join\_swap\_table.

## 2025-01-08

- [Building a Medallion architecture for Bluesky data with ClickHouse](https://swe.quest/articles/building-a-medallion-architecture-for-bluesky-data-with-clickhouse-37b9d3fcf0db6cec.md): ClickHouse · 2025-01-08 · Medium · 26 min read · Analytics & OLAP, Data pipelines, Databases, SQL
  A Medallion pipeline (Bronze, Silver, Gold) in ClickHouse ingests and cleans the high-volume Bluesky Jetstream feed, which arrives with malformed JSON, inconsistent and invalid timestamps, recursive structures and frequent duplicates.

## 2024-12-20

- [Calendars in Postgres using Foreign Data Wrappers](https://swe.quest/articles/calendars-in-postgres-using-foreign-data-wrappers-4dbdcfd48394df6d.md): Supabase · 2024-12-20 · Medium · 4 min read · PostgreSQL, WebAssembly, SQL
  A Cal.com Foreign Data Wrapper, built on Supabase's Wasm-based Wrappers framework, lets Postgres read Cal.com event types and bookings and create bookings with a plain INSERT, so a signup and its calendar booking can happen in one transaction.

[Next page](https://swe.quest/tags/sql.md?per=96&page=2)

Same list as RSS: [https://swe.quest/feed.xml?tag=sql](https://swe.quest/feed.xml?tag=sql). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

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)
