---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?per=48&tag=sql"
---

# Posts

Filtered by topics: SQL.

Posts 1–48 of 247, page 1 of 6, 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.

[Next page](https://swe.quest/index.md?per=48&tag=sql&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)
