---
title: "【分享】XtraDB：InnoDB 的取代品"
author: "varsoft"
date: "2009-07-22T20:48:00Z"
tags: []
slug: "xtradb-innodb"
draft: false
lastmod: "2009-07-22T20:48:00Z"
id: 873614
url: "https://varsoft.iteye.com/blog/873614"
---

[Percona](http://www.percona.com/) 宣布新的 Storage Engine，從 [InnoDB](http://www.innodb.com/) 修改出的 XtraDB：[Announcing Percona XtraDB Storage Engine: a Drop-in Replacement for Standard InnoDB](http://www.mysqlperformanceblog.com/2008/12/16/announcing-percona-xtradb-storage-engine-a-drop-in-replacement-for-standard-innodb/)。

据他们所宣称，这个版本会 100% 相容于 [MySQL](http://dev.mysql.com/) 內建的 InnoDB，所以他们推荐大家直接换过去用。而 [OurDelta](http://ourdelta.org/) 的 5.1 版本会直接內建 XtraDB 作为 InnoDB 的取代品。

这狠狠的打了 [Sun](http://www.sun.com/)/[MySQL AB](http://www.mysql.com/) (以及 [Oracle](http://www.oracle.com/)) 一巴掌。

有些有趣的想法可以从 [Jeremy Zawodny](http://jeremy.zawodny.com/) ([High Performance MySQL 第一版](http://oreilly.com/catalog/9780596003067/index.html)与[第二版](http://oreilly.com/catalog/9780596101718/)的作者之一) 的 [The New MySQL Landscape](http://jeremy.zawodny.com/blog/archives/010774.html) 这篇文章里看到。配合 [Slashdot](http://slashdot.org/) 的 [Is MySQL’s Community Eating the Company?](http://developers.slashdot.org/article.pl?sid=08%2F12%2F15%2F1451256) 这篇看就更有感觉了… (尤其是 comments)

有兴趣的人可以看「[XtraDB benchmarks – 1.5X gain in IO-bound load](http://www.mysqlperformanceblog.com/2008/12/18/xtradb-benchmarks-15x-gain/)」这篇文章，里面有一份 benchmarking。(不是很严谨的方式)

XtraDB 是一个MySQL 的存储引擎，其设计的主要目的是用以替代现在的 InnoDB 。XtraDB 100%的兼容 InnoDB 。

Mysql应用最广的两个数据引擎就是MYISAM/InnoDB,后者应用更多。不过最近发现一个Third-part第三方引擎[XtraDB](http://www.mysqlperformanceblog.com/2008/12/16/announcing-percona-xtradb-storage-engine-a-drop-in-replacement-for-standard-innodb/)可以完全替代InnoDB。

这里[Percona](http://www.mysqlperformanceblog.com/2008/12/16/announcing-percona-xtradb-storage-engine-a-drop-in-replacement-for-standard-innodb/)自己对新引擎的描述：includes all of InnoDB’s ACID-compliant design and advanced MVCC architecture, and adds features, more tunability, more metrics, more scalability on many cores, and better memory usage。我的理解是完全兼容InnoDB,在很多核心性能（如四条核心SQL性能）上要有提升，另外就是对内存的更有效利用。

有不少人把这个新引擎的诞生戏剧的形容为对sun mysql一记重重的耳光，我也有同感，呵呵。其实任何开源的东东都经历着由小到大，由单一简单任务到更加复杂的体系的变化，这个过程中越往后对于方向的把握越难直到发展成一个庞然大物的商业产品。细想一下很多开源产品是不是都是这样？

官网：[https://launchpad.net/percona-xtradb](https://launchpad.net/percona-xtradb)  
下载：[http://www.percona.com/docs/wiki/release:start](http://www.percona.com/docs/wiki/release:start)

参考URL：  
[http://blog.gslin.org/archives/2008/12/17/1887/](http://blog.gslin.org/archives/2008/12/17/1887/)  
[http://yustar.joomlar.cn/archives/731.html](http://yustar.joomlar.cn/archives/731.html)  
[http://www.mysqlperformanceblog.com/2008/12/18/xtradb-benchmarks-15x-gain/](http://www.mysqlperformanceblog.com/2008/12/18/xtradb-benchmarks-15x-gain/)

&lt;!-- .entry-content --&gt;