---
title: "Maximizing Your Delta Scan Performance in DuckDB"
description: "DuckDB's delta extension v0.3.0 runs TPC-DS SF1 on S3 more than 3× faster than v0.1.0, mostly because cardinality information now reaches DuckDB's join order optimizer."
url: "https://swe.quest/articles/maximizing-your-delta-scan-performance-in-duckdb-6643024699229651"
canonical: "https://duckdb.org/2025/03/21/maximizing-your-delta-scan-performance.html"
source: "DuckDB"
published: "2025-03-21"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 13
tags: ["query-engines","analytics","performance","storage-systems"]
---

# Maximizing Your Delta Scan Performance in DuckDB

A post on [DuckDB](https://swe.quest/sources/duckdb.md), published 2025-03-21, 13 min read, Deep dive. Original: [https://duckdb.org/2025/03/21/maximizing-your-delta-scan-performance.html](https://duckdb.org/2025/03/21/maximizing-your-delta-scan-performance.html)

## Summary

DuckDB's delta extension v0.3.0 runs TPC-DS SF1 on S3 more than 3× faster than v0.1.0, mostly because cardinality information now reaches DuckDB's join order optimizer. Three further features speed up Delta reads. ATTACH caches metadata within a transaction, giving a 1.13× speedup, and PIN\_SNAPSHOT keeps it across queries for 1.47×, at the cost of missing later table updates. File skipping uses Delta's per-file statistics to prune files with constant or dynamic filters: an id\<100 query scanned 1 of 2,000 files and took 0.5s, against 17s for a raw parquet\_scan. Partition information pushdown lets partition-aware aggregation exploit existing partitioning, demonstrated with TPC-H Q1.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Query engines](https://swe.quest/tags/query-engines.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- Delta Lake table format
- Parquet files
- SQL query plans ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

DuckDB, Delta Lake, Delta Kernel, TPC-DS, TPC-H, Amazon S3, Parquet

## Related posts

- [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.
- [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.
- [ClickHouse Release 25.2](https://swe.quest/articles/clickhouse-release-25-2-70e1ceccfb09d252.md): ClickHouse · 2025-03-07 · Medium · 8 min read · Analytics & OLAP, Query engines, Performance engineering, Data structures
  ClickHouse 25.2 ships 12 features, 15 performance optimizations and 72 bug fixes.
- [ClickHouse Release 23.8](https://swe.quest/articles/clickhouse-release-23-8-8db1ebb65d969c75.md): ClickHouse · 2023-09-15 · Medium · 10 min read · Analytics & OLAP, Query engines, Data pipelines, Performance engineering
  ClickHouse 23.8 makes file reads much faster by using Parquet row-group min/max statistics to skip data, answering count() from file metadata, and pruning files via the \_file virtual column without reading them.
- [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.

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)
