Home > Database > Mysql Tutorial > MySQL的MyISAM和InnoDB的大数据量查询性能比较

MySQL的MyISAM和InnoDB的大数据量查询性能比较

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:04:31
Original
1750 people have browsed it

因为工作关系,有一个超过11亿记录的MySQL数据库,之前一直以为MyISAM引擎的查询性能会超过InnoDB,这两天特意测试了一下,不过因

因为工作关系,有一个超过11亿记录的MySQL数据库,之前一直以为MyISAM引擎的查询性能会超过InnoDB,这两天特意测试了一下,不过因为数据量太大,转换引擎就花了几天时间。

测试环境:

DELL 860服务器,CPU Xeon3210, 内存8G

MySQL版本5.5.13,安装了两份实例,端口分别是3306(InnoDB)和3307(MyISAM)

MySQL客户端工具HeidiSQL 6.0.0.3603,查询语句:

select count(1) from mytable where update_datetime>'1900-01-01'

update_datetime字段都做了索引

查询时间分别如下(一共1,132,191,947条记录):

InnoDB:763.672秒

MyISAM:4094.621秒

InnoDB比MyISAM快4倍多

以后有机会再测试一下MS SQL和Oracle的性能。

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template