Comparison between InnoDB and MyISAM on join

Source: Internet
Author: User

For details, see this article:

Http://www.mysqlperformanceblog.com/2006/05/29/join-performance-of-myisam-and-innodb/

 

(1) the connection between InnoDB on the primary key is faster, because for InnoDB, data and indexes are clustered into one block. When the index is read, the data is also read.

(2) InnoDB automatically creates adaptive hash indexes based on query conditions, which is faster than a single btree index.

(3) MyISAM uses key compress to compress the index of character columns, which is slower for random search.

(4) because of its simplicity, MyISAM has lower overhead than InnoDB.

(5) MyISAM's join on the primary key is faster than other keys, because during join scanning, only a precise row can be found for the primary key; for other keys, because you are not sure whether there are more rows, You need to query whether there are the next row, which leads to more overhead.

 

In general, InnoDB performs better on join.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.