June 2017
Beginner to intermediate
368 pages
8h 31m
English
A MySQL database has a built-in query optimizer which, when you issue a SELECT query, will attempt to extract and present the required data as efficiently as possible. We can investigate the optimizer's query plan by prefixing the query with EXPLAIN. This function is easily accessible from the phpMyAdmin tools. For example, here's the query to determine the number of certificates issued, which has been explained by prefixing it with the EXPLAIN keyword:

In order to speed up the extraction of data from a table, a key is used. If the data is spread across a number of tables, or needs to be sorted in some way, MySQL may as well ...
Read now
Unlock full access