<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/running-duckdb-as-a-mysql-9-7-storage-engine-hhxnvb0s1" -->

---
title: Running DuckDB as a MySQL 9.7 storage engine | daily.dev
description: An experimental MySQL 9.7 build called ducksdb-mysql-engine integrates DuckDB as a pluggable storage engine, allowing tables marked ENGINE=DuckDB to offload...
canonical: https://daily.dev/posts/running-duckdb-as-a-mysql-9-7-storage-engine-hhxnvb0s1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Running DuckDB as a MySQL 9.7 storage engine | daily.dev
og:description: An experimental MySQL 9.7 build called ducksdb-mysql-engine integrates DuckDB as a pluggable storage engine, allowing tables marked ENGINE=DuckDB to offload...
og:url: https://daily.dev/posts/running-duckdb-as-a-mysql-9-7-storage-engine-hhxnvb0s1
og:image: https://api.daily.dev/og/posts/hhXnvB0s1.png
og:image:alt: Running DuckDB as a MySQL 9.7 storage engine
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Running DuckDB as a MySQL 9.7 storage engine

**[Percona Blog](https://daily.dev/sources/percona)** · 6 min read · 0 upvotes · 0 comments

## Summary

An experimental MySQL 9.7 build called ducksdb-mysql-engine integrates DuckDB as a pluggable storage engine, allowing tables marked ENGINE=DuckDB to offload analytical queries to DuckDB's columnar engine while keeping the same MySQL connection and data. A custom pushdown_select hook (handlerton::pushdown_select) translates qualifying SQL to DuckDB SQL transparently, falling back to the normal row path when needed. TPC-H benchmarks at scale factor 10 show InnoDB timing out on 6 of 22 queries and taking 1317 seconds on the rest, while the DuckDB engine completes all 22 in ~15 seconds. At SF100 (600M rows), the engine remains correct on all 22 queries and stays close to native DuckDB performance, outperforming MariaDB's DuckDB integration on several heavy joins and loading data ~4x faster. The project is open source under GPLv2 and explicitly experimental.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.percona.com/blog/running-duckdb-as-a-mysql-9-7-storage-engine>

## Similar posts on daily.dev

- [The DuckDB MySQL engine at 500 GB](https://daily.dev/posts/the-duckdb-mysql-engine-at-500-gb-baqjll9pk) · Planet MySQL · 0 upvotes · 0 comments
- [Trying DuckDB for Magento Analytics: An Experiment with One Million Orders](https://daily.dev/posts/trying-duckdb-for-magento-analytics-an-experiment-with-one-million-orders-xunzodi5k) · MariaDB.org · 0 upvotes · 0 comments
- [Replicating from InnoDB into a DuckDB storage engine](https://daily.dev/posts/replicating-from-innodb-into-a-duckdb-storage-engine-pye2iwehn) · Planet MySQL · 1 upvotes · 0 comments
- [Why DuckDB is my first choice for data processing](https://daily.dev/posts/why-duckdb-is-my-first-choice-for-data-processing-sx7gglwxx) · Hacker News · 1 upvotes · 0 comments
- [DuckDB Speed on MySQL with dbtrail, Without a New Storage Engine](https://daily.dev/posts/duckdb-speed-on-mysql-with-dbtrail-without-a-new-storage-engine-0gt0zkgml) · Planet MySQL · 1 upvotes · 0 comments

---

Tags: [#mysql](https://daily.dev/tags/mysql), [#duckdb](https://daily.dev/tags/duckdb), [#olap](https://daily.dev/tags/olap)

[View this post on daily.dev](https://daily.dev/posts/running-duckdb-as-a-mysql-9-7-storage-engine-hhxnvb0s1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Running DuckDB as a MySQL 9.7 storage engine","url":"https://daily.dev/posts/running-duckdb-as-a-mysql-9-7-storage-engine-hhxnvb0s1","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/running-duckdb-as-a-mysql-9-7-storage-engine-hhxnvb0s1"},"datePublished":"2026-07-10T13:52:58.476Z","dateModified":"2026-07-10T13:54:04.435Z","description":"An experimental MySQL 9.7 build called ducksdb-mysql-engine integrates DuckDB as a pluggable storage engine, allowing tables marked ENGINE=DuckDB to offload...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5b34fa5fd8dc1a3eb3ec30c436f6fe33?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5b34fa5fd8dc1a3eb3ec30c436f6fe33?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Percona Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Percona Blog","logo":"https://media.daily.dev/image/upload/s--Lb3XkBh3--/f_auto,q_auto/v1780213412/logos/percona?_a=BAMAMiWQ0","url":"https://daily.dev/sources/percona"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/running-duckdb-as-a-mysql-9-7-storage-engine-hhxnvb0s1","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mysql,duckdb,olap","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Percona Blog","item":"https://daily.dev/sources/percona"},{"@type":"ListItem","position":3,"name":"Running DuckDB as a MySQL 9.7 storage engine"}]}
```

