MySQL Engine introduction

Source: Internet
Author: User

MysqlEngine IntroductionInnodbStorage Engine
  1. support transactions, in OLTP support row-level lock, foreign key;

  2. concurrency control via multiple versions MVCC to achieve high concurrency, and implement 4 isolation levels for SQL (default repeatable);

  3. provides insert buffer,double write, adaptive Hash index, pre-read;

  4. for storage of data in tables,InnoDB uses clustered. The storage of each table is stored in the order of the primary key, and if the table does not explicitly define a primary key,InnoDB generates a 6 -byte rowid for each row as the primary key.

MyisamStorage Engine
    1. transactions are not supported, table locks, full-text indexes, Fast OLAP operation;

    2. The storage engine has MYD and MYI composition,MYD put data files,MYI put index files;

    3. starting with MySQL 5.0, 256T single- table data is supported by default ;

    4. for the MyISAM Storage Engine table,the MySQL database caches only its index files, and the cache of the data files is done by the OS itself, as distinct from the use of LRU The algorithm caches most of the data in the database.

NDBStorage Engine
    1. The data is put in memory, the primary key is very fast, can improve the database performance linearly, high availability, high performance cluster system;

    2. the connection operation of the NDB storage engine is done at the MySQL database layer, not the storage engine layer, so complex connection operations require significant network overhead.

MemoryStorage Engine
    1. put the table's data in memory, and if the database restarts or crashes, the data in the table is lost. A temporary table for storing temporary data, a latitude table in a data warehouse, a hash index by default , and a non- B + tree index;

    2. only table locks are supported, poor concurrency, text and blob types are not supported, and when you store a variable-length field varchar, you are wasting space by using the fixed-length field char method.


This article is from the "90SirDB" blog, be sure to keep this source http://90sirdb.blog.51cto.com/8713279/1792401

MySQL Engine introduction

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.