Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

DuckDB 5 min read Case study mediumAdept

How Atlan Moved Its Data Platform from Spark and StarRocks to DuckDB on S3

Atlan replaced Apache Spark with Delta Lake for its metadata and lineage pipelines with in-process DuckDB running inside Python workers on Kubernetes and Temporal, reading and writing Parquet and Iceberg on S3. The new pipelines run faster and cost far less, with no cluster to size and no extra system to deploy in customers' cloud accounts. A DuckDB service on ephemeral compute with per-tenant isolation replaced StarRocks at about 40% lower cost, and ClickHouse trace storage is being replaced the same way. Atlan's patches in DuckDB 2.0 include disk spilling for string/list aggregate states, an opt-in external file cache spill to local disk, and new JSON editing and merge-patch functions.

Related posts

  • From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB

    DuckDB mediumAdept

    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. He favours DuckLake over Iceberg because it keeps lakehouse metadata in a SQL database. In his experience, catalog operations that take seconds with Iceberg's metadata files resolve in under a millisecond, and the setup is two statements instead of a 20-plus-line Spark configuration. In DuckDB 2.0 alpha, asynchronous I/O cut his S3 read times for 1,000–10,000 files by 67–70%, and ATTACH now accepts expressions such as getenv. The Quack protocol can also serve a DuckLake over HTTP without handing out AWS credentials.

  • Zero-ETL lakehouses for Postgres people

    Neon easyNovice

    Data lakehouses unbundle an OLAP database into six layers: object storage, raw data formats like Parquet, table formats like Iceberg or Delta Lake, a metadata catalog such as Unity Catalog or DuckLake, compute, and query engines like Spark or DuckDB. This layering gives warehouse-like SQL, ACID and snapshots at close to data-lake cost. The explanation is aimed at Postgres users and covers why OLAP systems favour column-oriented, time-chunked and partitioned storage, why HTAP has lost out to zero-ETL sync between separate OLTP and OLAP systems, and how separating storage from compute shapes the stack. Parquet and Iceberg are emerging as favourites, and the Postgres extensions pg_duckdb, pg_lake and pg_mooncake are highlighted as bridges between Postgres and lakehouses.

  • Aderant modernizes analytics data pipeline with Apache Iceberg and AWS Lambda

    AWS Architecture Blog mediumAdept

    Aderant replaced a 15-minute batch pipeline for its Stridyn legal analytics tool with an event-driven medallion architecture (bronze, silver, gold) built on Apache Iceberg tables in S3. CDC events from SQL Server flow via AWS DMS, S3 notifications, SQS and containerized Lambda (PyIceberg) into bronze tables in single-digit seconds. Glue jobs with DynamoDB watermarks perform MERGE-based deduplication into silver. Gold tables are produced two ways: incremental Glue jobs for 77 standard tables, and Iceberg materialized views with snapshot diffing for 34 complex window/CTE queries, with deltas pushed into native Redshift tables. Moving from Redshift Spectrum to native tables gave 10–26x faster queries (sub-100 ms), and Lambda instead of streaming cut compute costs by 77% across 700 tenants and 266 source tables.

  • Maximizing Your Delta Scan Performance in DuckDB

    DuckDB mediumAdept

    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.

  • Scaling SaaS security: Reco’s migration from Postgres to ClickHouse Cloud

    ClickHouse mediumAdept

    Reco, a SaaS security platform ingesting 10-12 billion JSON events weekly, moved over 90% of its workload from Postgres to ClickHouse Cloud. Running both databases synced via CDC had made schema migrations, updates, deletes and VACUUM painful. Reco replaced RDBMS features with ReplacingMergeTree and CollapsingMergeTree for upserts and deletes, idempotency and eventual consistency instead of transactions, and tenant-level atomic materialized view refreshes via REPLACE PARTITION. Further gains came from compute-compute separation, spill-to-disk settings, parallel_distributed_insert_select=2 (cutting resource needs by a third) and data-skipping indexes, plus using the EmbeddedRocksDB engine as a streaming state store in place of Spark state and Redis.

The quest for software engineering knowledge.

Look:
Layout: