首页 > 其他分享 >14.1.1 Benefits of Using InnoDB Tables

14.1.1 Benefits of Using InnoDB Tables

时间:2022-12-20 15:13:16浏览次数:73  
标签:Tables Benefits tables Section See InnoDB table data

The InnoDB Storage Engine

Introduction to InnoDB

14.1.1 Benefits of Using InnoDB Tables

14.1.2 InnoDB表的最佳实践

InnoDB tables have the following benefits:

  • If the server unexpectedly exits because of a hardware or software issue, regardless of what was happening in the database at the time, you don't need to do anything special after restarting the database. crash recovery automatically finalizes changes that were committed before the time of the crash, and undoes changes that were in process but not committed, permitting you to restart and continue from where you left off. See Section 14.19.2, “InnoDB Recovery”InnoDB

  • The storage engine maintains its own buffer pool that caches table and index data in main memory as data is accessed. Frequently used data is processed directly from memory. This cache applies to many types of information and speeds up processing. On dedicated database servers, up to 80% of physical memory is often assigned to the buffer pool. See Section 14.5.1, “Buffer Pool”InnoDB

  • If you split up related data into different tables, you can set up foreign keys that enforce referential integrity. See Section 13.1.18.5, “FOREIGN KEY Constraints”.

  • If data becomes corrupted on disk or in memory, a checksum mechanism alerts you to the bogus data before you use it. The innodb_checksum_algorithm variable defines the checksum algorithm used by . InnoDB

  • When you design a database with appropriate primary key columns for each table, operations involving those columns are automatically optimized. It is very fast to reference the primary key columns in WHERE clauses, ORDER BY clauses, GROUP BY clauses, and join operations. See Section 14.6.2.1, “Clustered and Secondary Indexes”.

  • Inserts, updates, and deletes are optimized by an automatic mechanism called change buffering. not only allows concurrent read and write access to the same table, it caches changed data to streamline disk I/O. See Section 14.5.2, “Change Buffer”InnoDB

  • Performance benefits are not limited to large tables with long-running queries. When the same rows are accessed over and over from a table, the Adaptive Hash Index takes over to make these lookups even faster, as if they came out of a hash table. See Section 14.5.3, “Adaptive Hash Index”.

  • You can compress tables and associated indexes. See Section 14.9, “InnoDB Table and Page Compression”.

  • You can encrypt your data. See Section 14.14, “InnoDB Data-at-Rest Encryption”.

  • You can create and drop indexes and perform other DDL operations with much less impact on performance and availability. See Section 14.13.1, “Online DDL Operations”.

  • Truncating a file-per-table tablespace is very fast and can free up disk space for the operating system to reuse rather than only . See Section 14.6.3.2, “File-Per-Table Tablespaces”InnoDB

  • The storage layout for table data is more efficient for BLOB and long text fields, with the row format. See Section 14.11, “InnoDB Row Formats”DYNAMIC

  • You can monitor the internal workings of the storage engine by querying tables. See Section 14.16, “InnoDB INFORMATION_SCHEMA Tables”INFORMATION_SCHEMA

  • You can monitor the performance details of the storage engine by querying Performance Schema tables. See Section 14.17, “InnoDB Integration with MySQL Performance Schema”.

  • You can mix 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 and MEMORY tables in a single query. InnoDBInnoDB

  • InnoDB has been designed for CPU efficiency and maximum performance when processing large data volumes.

  • InnoDB tables can handle large quantities of data, even on operating systems where file size is limited to 2GB.

For -specific tuning techniques you can apply to your MySQL server and application code, see Section 8.5, “Optimizing for InnoDB Tables”InnoDB

   

标签:Tables,Benefits,tables,Section,See,InnoDB,table,data
From: https://www.cnblogs.com/WLCYSYS/p/16994200.html

相关文章

  • MySQL-InnoDB磁盘结构
    主要阐述InnoDB存储引擎(MySQL5以后的默认引擎)。数据库中最基本的组成结构是数据表,视觉上的表和其对应的磁盘结构如下:此图参考了厦门大学课堂:MySQL原理。但是视频中一些......
  • 深入解读MySQL InnoDB存储引擎Update语句执行过程
    参考b站up戌米的论文笔记https://www.bilibili.com/video/BV1Tv4y1o7tA/书籍《mysql是怎样运行的》极客时间《mysql实战45讲》系列文章目录和关于我一丶Mysql整体架......
  • jquery .dataTables使用ajax数据源小示例
    <scripttype="text/javascript"language="javascript"src="./plugins/jquery/jquery-1.12.4.min.js"></script><scripttype="text/javascript"language="javascript......
  • Table表格的css样式代码详解 tableStyle.css
    原文地址:https://www.jb51.net/article/220293.htm漂亮的table表格样式css源码漂亮的table表格样  <html><head><title></title><styletype="text/css......
  • MySQL进阶实战9,InnoDB和MyISAM的数据分布对比
    一、InnoDB存储引擎InnoDB的数据存储在表空间dataspace中,由很多数据文件组成。InnoDB采用MVCC来支持高并发,实现了四个标准的隔离级别。其默认级别是可重复读repeatablerea......
  • 在ubuntu下 service iptables start启动iptables失败
    尝试通过执行serviceiptablesstart启动iptables失败,提示iptables:unrecognizedservice。可以通过modprobeip_tables启动。补充:1、service可以控制系统服务(打开、......
  • OC之【NSMutableString的使用】
    可变字符串的创建void//预先分配10个字数的存储空间NSMutableString*str=[[NSMutableStringalloc]initWithCapacity:10];//设置字符串内容setString:@......
  • Centos7.2 启用iptables
    一、防火墙iptables简洁介绍iptables和firewalld都是工作在用户空间、用来定义规则的工具,本身不是防火墙,他们定义的规则,可以让内核空间当中的netfilter读取,并且实现防......
  • MYSQL-INNODB索引构成详解
    作者:郑啟龙摘要:对于MYSQL的INNODB存储引擎的索引,大家是不陌生的,都能想到是B+树结构,可以加速SQL查询。但对于B+树索引,它到底“长”得什么样子,它具体如何由一个个字节构成......
  • MYSQL-INNODB索引构成详解
    作者:郑啟龙摘要:对于MYSQL的INNODB存储引擎的索引,大家是不陌生的,都能想到是B+树结构,可以加速SQL查询。但对于B+树索引,它到底“长”得什么样子,它具体如何由一个个字节构成的,......