---
title: "Query engines"
description: "Query planning, optimization and execution engines"
url: "https://swe.quest/tags/query-engines"
---

# Query engines

Topic in Data & databases: Query planning, optimization and execution engines

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

Posts 1–24 of 123, 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.

## 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-19

- [pg\_clickhouse 0.11.1: Now with pgvector, UPDATE, DELETE pushdown](https://swe.quest/articles/pg-clickhouse-0-11-1-now-with-pgvector-update-delete-pushdown-a96a06584d05c765.md): ClickHouse · 2026-11-19 · Medium · 7 min read · PostgreSQL, Analytics & OLAP, Vector search, Query engines
  pg\_clickhouse 0.11.1 maps pgvector's vector type to ClickHouse Array(Float32/Float64) columns.
- [Postgres 19 is out: try it on Neon](https://swe.quest/articles/postgres-19-is-out-try-it-on-neon-e6c41c3a4f2e92c9.md): Neon · 2026-11-19 · Medium · 12 min read · PostgreSQL, Replication, Query engines, Databases
  Postgres 19 is an operations-focused release that adds REPACK (CONCURRENTLY) for online table rebuilding and clustering via logical decoding, pg\_plan\_advice/pg\_stash\_advice for stabilizing bad plans by query ID, parallel autovacuum with priority scoring, WAIT FOR LSN for read-your-writes on replicas, and logical replication sequence sync.

## 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

- [Meet GroeneAI: our autonomous contributor to ClickHouse](https://swe.quest/articles/meet-groeneai-our-autonomous-contributor-to-clickhouse-80536c3885c78419.md): ClickHouse · 2026-10-29 · Medium · 19 min read · AI agents, AI for coding, CI/CD, Query engines, Caching
  GroeneAI is a fully autonomous AI agent, built on the open-source Nerve runtime, that finds, reproduces and fixes ClickHouse bugs from CI failures, fuzzer findings and user reports, then shepherds its PRs through CI and review; it has passed 3,000 merged PRs.

## 2026-10-28

- [Why ClickHouse Cloud wins at real-time analytics](https://swe.quest/articles/why-clickhouse-cloud-wins-at-real-time-analytics-ff3bf2806ccb7be7.md): ClickHouse · 2026-10-28 · Medium · 21 min read · Analytics & OLAP, Storage engines, Query engines, Performance engineering, Cost optimization
  In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless.
- [The new cost-based join optimizer with reordering support for non-inner joins](https://swe.quest/articles/the-new-cost-based-join-optimizer-with-reordering-support-for-non-inner-joins-60f6c88dd7c8b7a9.md): ClickHouse · 2026-10-28 · Hard · 17 min read · Query engines, Algorithms, Analytics & OLAP, Performance engineering
  ClickHouse's new cost-based join optimizer uses an exhaustive DPsub dynamic-programming enumerator over table-subset bitmasks.

## 2026-10-21

- [Running ClickHouse on NVIDIA Vera CPU: Is your favorite database up to the challenge?](https://swe.quest/articles/running-clickhouse-on-nvidia-vera-cpu-is-your-favorite-database-up-to-the-2e92c798f70f3113.md): ClickHouse · 2026-10-21 · Medium · 12 min read · Performance engineering, Query engines, Hardware, Analytics & OLAP
  ClickHouse, run unmodified on NVIDIA's early-access Vera CPU (2×88 Arm Olympus cores, 352 SMT threads, ~1.2 TB/s memory bandwidth), topped the ClickBench hardware leaderboard.

## 2026-10-14

- [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-10-01

- [Building a faster, lazier router for Postgres](https://swe.quest/articles/building-a-faster-lazier-router-for-postgres-bc9a70ce219128ed.md): PlanetScale · 2026-10-01 · Hard · 15 min read · PostgreSQL, Distributed databases, Performance engineering, Go, Query engines
  Neki, PlanetScale's Postgres sharding router, cuts per-query overhead by keeping PostgreSQL wire-protocol bytes intact and decoding only as much as each query requires.
- [How we extended Apache DataFusion to execute one query across many machines](https://swe.quest/articles/how-we-extended-apache-datafusion-to-execute-one-query-across-many-machines-6519f2d407c939dd.md): Datadog Engineering · 2026-10-01 · Hard · 12 min read · Query engines, Distributed databases, Rust, Analytics & OLAP, Open source
  Datadog built Distributed DataFusion, an open source Rust framework that extends Apache DataFusion's physical execution model so a single interactive query can run across many machines while keeping latency roughly flat as data grows.

## 2026-09-29

- [Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck](https://swe.quest/articles/turso-0-8-concurrent-writes-without-sqlite-s-single-writer-bottleneck-12eb79dda642476c.md): Turso · 2026-09-29 · Medium · 6 min read · SQLite, Concurrency, Performance engineering, Storage engines, Query engines
  Turso 0.8 targets SQLite's single-writer bottleneck with BEGIN CONCURRENT, an MVCC mode where transactions start independently and commit in groups.

## 2026-09-28

- [Can your Postgres survive a bad query?](https://swe.quest/articles/can-your-postgres-survive-a-bad-query-744ea9a22b65710c.md): ClickHouse · 2026-09-28 · Hard · 13 min read · PostgreSQL, Memory management, Resilience, Query engines, Linux
  Postgres's \`work\_mem\` limits memory per plan node per process, not per query, so parallel workers and \`hash\_mem\_multiplier\` can push a simple aggregation past 8x \`work\_mem\`.

## 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-18

- [Postgres week in the Netherlands: PGDay Lowlands & Percona Live 2026](https://swe.quest/articles/postgres-week-in-the-netherlands-pgday-lowlands-percona-live-2026-0eb593178690a919.md): ClickHouse · 2026-09-18 · Easy · 7 min read · PostgreSQL, Observability, Analytics & OLAP, Query engines
  Notes from PGDay Lowlands in Utrecht and Percona Live in Amsterdam, covering two ClickHouse-maintained Postgres extensions and several PostgreSQL 19 features. pg\_clickhouse is a foreign data wrapper that lets unmodified Postgres queries and ORMs run against ClickHouse via pushdown, with 15 of 22 TPC-H queries fully pushed down. pg\_stat\_ch streams per-query execution events through a shared-memory ring buffer to ClickHouse without back-pressure.

## 2026-09-10

- [Announcing On-Demand Compute: Instant compute for your most intensive workloads](https://swe.quest/articles/announcing-on-demand-compute-instant-compute-for-your-most-intensive-workloads-963fb95d47ae3b96.md): ClickHouse · 2026-09-10 · Easy · 6 min read · Analytics & OLAP, Query engines, Cloud platforms, Scaling
  ClickHouse Cloud On-Demand Compute, now in private preview, lets a query run on a shared pool of ClickHouse workers outside the service's own cluster by setting make\_distributed\_plan and distributed\_plan\_workers\_num.

## 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.

## 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-06

- [ClickHouse Release 26.7](https://swe.quest/articles/clickhouse-release-26-7-1ce7ef970afa5876.md): ClickHouse · 2026-08-06 · Medium · 30 min read · Query engines, Analytics & OLAP, Performance engineering, Vector search
  ClickHouse 26.7 ships 61 features, 112 performance optimizations and 329 bug fixes, led by a fused ordered-aggregation pipeline that pushes LIMIT into in-order GROUP BY.

## 2026-07-16

- [We're building Postgres in Rust. Using the LLVM of databases](https://swe.quest/articles/we-re-building-postgres-in-rust-using-the-llvm-of-databases-e44d34208278a99e.md): Turso · 2026-07-16 · Easy · 11 min read · PostgreSQL, SQLite, Rust, Query engines, Open source
  Turso, a Rust rewrite of SQLite, is adding a Postgres frontend by parsing Postgres SQL into a common AST and compiling it to Turso's VDBE bytecode, turning the engine into an "LLVM of databases" with pluggable frontends.

## 2026-07-08

- [Introducing pg\_re2, fast, RE2-powered regular expressions in Postgres](https://swe.quest/articles/introducing-pg-re2-fast-re2-powered-regular-expressions-in-postgres-0fcf212bf9544079.md): ClickHouse · 2026-07-08 · Medium · 8 min read · PostgreSQL, Performance engineering, Query engines, Analytics & OLAP
  pg\_re2 is a Postgres extension that replaces backtracking POSIX regex with Google's automata-based RE2 engine, beating Postgres builtins by 1.8x to 8.6x on table scans and 1.1x to 1.8x on index scans.

[Next page](https://swe.quest/tags/query-engines.md?page=2)

Same list as RSS: [https://swe.quest/feed.xml?tag=query-engines](https://swe.quest/feed.xml?tag=query-engines). 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)
