Recursive CTEs in SQL allow for powerful iterative queries like graph traversals but can be memory-intensive and slow due to repeated row accumulation. DuckDB’s new USING KEY feature addresses this by treating intermediate results as keyed dictionaries instead of an ever growing set: existing entries can be updated.