An intelligent index recommendation method based on word frequency analysis of MySQL slow query log
A recommendation method and slow query technology, applied in database query, energy-saving computing, structured data retrieval, etc., can solve the problems of subjective index creation, inability to match, lack of project operation data, etc., to avoid multiple single-column indexes and objective indexes Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0023] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0024] The invention designs an index intelligent recommendation method based on the word frequency analysis of MySQL slow query log, which is used for obtaining the optimal index corresponding to the target table t for the target table t in MySQL that needs to recommend the index, including the following steps.
[0025] Step A. For all the SQL query statements in the preset time range in the MySQL slow query log, obtain all the SQL query statements including the target table t field, and form a set R, wherein the number of SQL query statements in the set R is N , then go to step B.
[0026] Step B. Obtain each query field in the set R, and obtain the number of times each query field appears in the set R, and obtain each field combination containing two query fields, and the two query fields in the field combination appear at the sam...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


