ELSEIF
Your brief EB
268 stories from 200 feeds 1254 clusters Refreshed 6 minutes ago next pull 16:40

DATABASES Signal 129

How DuckDB Runs Recursive CTEs Faster

DuckDB now treats recursive CTEs as a single long-lived computation, retaining epoch-invariant state and optimizing execution mode selection based on frontier cardinality and physical work.

WHY IT MATTERS

Recursive CTEs are critical for graph traversal, hierarchical queries, and iterative algorithms in analytical workloads. This change reduces overhead by avoiding repeated setup and teardown of execution pipelines, making recursive queries significantly faster without altering SQL semantics. Engineers building graph-based or recursive data processing pipelines in DuckDB will see immediate performance gains.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

DuckDB’s recursive CTE engine now retains reusable state across iterations, eliminating redundant pipeline scheduling and operator setup.

02

Execution modes are dynamically chosen based on exact frontier cardinalities and physical work estimates, improving efficiency.

03

The `USING KEY ... UNION` construct now supports changed-key semantics, enabling direct probes into keyed state for faster lookups.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
DuckDB How DuckDB Runs Recursive CTEs Faster Open ↗