When should you choose to use InnoDB in MySQL?

前端 未结 10 2255
感情败类
感情败类 2020-12-24 14:50

I am rather confused by the hurt-mongering here.

I know how to do them, see below, but no idea why? What are they for?

create table orders (         


        
10条回答
  •  佛祖请我去吃肉
    2020-12-24 15:47

    InnoDB:

    The InnoDB storage engine in MySQL. InnoDB is a high-reliability and high-performance storage engine for MySQL. Key advantages of InnoDB include:

    • Its design follows the ACID model, with transactions featuring commit, rollback, and crash-recovery capabilities to protect user data.
    • Row-level locking (without escalation to coarser granularity locks) and Oracle-style consistent reads increase multi-user concurrency and performance.
    • InnoDB tables arrange your data on disk to optimize common queries based on primary keys. Each InnoDB table has a primary key index called the clustered index that organizes the data to minimize I/O for primary key lookups
    • To maintain data integrity, InnoDB also supports FOREIGN KEY referential-integrity constraints.
    • You can freely mix InnoDB tables with tables from other MySQL storage engines, even within the same statement. For example, you can use a join operation to combine data from InnoDB and MEMORY tables in a single query.

    InnoDB Limitations:

    • No full text indexing (Below-5.6 mysql version)

    • Cannot be compressed for fast, read-only

    More Details:

    Refer this link

提交回复
热议问题