Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the mysql overlay index?

Shulou Source: shulou.com Published: 2022-05-31 10:55:11 09月11日 Update

This article mainly explains "mysql coverage index is what", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "what mysql coverage index is"!

The columns required in the query statement are in the index, so that the query results can be found in the data structure of the index.

Because coverage index can reduce the number of tree searches and significantly improve query performance, using coverage index is a common performance optimization method.

examples

+----+-------------+------------+------+-----------------------+--------------+---------+-------+------+-------------+| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |+----+-------------+------------+------+-----------------------+--------------+---------+-------+------+-------------+| 1 | SIMPLE | user_group | ref | group_id,group_id_uid | group_id_uid | 4 | const | 5378 | Using index |+-----------------------Might as well do it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Tags: Indexes queries content performance methods learning practical salient deeper interests examples practicality practicality common use simple operation data data structures more friends trees Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Huawei Redmi Linux macOS