PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5
To tune queries forInnoDB tables, create an appropriate set of indexes on each table. SeeSection 8.3.1, “How MySQL Uses Indexes” for details. Follow these guidelines forInnoDB indexes:
Because each
InnoDBtable has aprimary key (whether you request one or not), specify a set of primary key columns for each table, columns that are used in the most important and time-critical queries.Do not specify too many or too long columns in the primary key, because these column values are duplicated in each secondary index. When an index contains unnecessary data, the I/O to read this data and memory to cache it reduce the performance and scalability of the server.
Do not create a separatesecondary index for each column, because each query can only make use of one index. Indexes on rarely tested columns or columns with only a few different values might not be helpful for any queries. If you have many queries for the same table, testing different combinations of columns, try to create a small number ofconcatenated indexes rather than a large number of single-column indexes. If an index contains all the columns needed for the result set (known as acovering index), the query might be able to avoid reading the table data at all.
If an indexed column cannot contain any
NULLvalues, declare it asNOT NULLwhen you create the table. The optimizer can better determine which index is most effective to use for a query, when it knows whether each column containsNULLvalues.You can optimize single-query transactions for
InnoDBtables, using the technique inSection 8.5.3, “Optimizing InnoDB Read-Only Transactions”.
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5