The application discloses a
distributed database index recommendation
monitoring system and method, belongs to the field of distributed databases, and aims to solve the technical problem of how to perform real-time feedback on analysis recommendation functions, establish a
closed loop index, and guarantee the health and efficiency of
database indexes. The technical scheme adopted is as follows: the structure comprises an index analysis recommendation module, an index suggestion modification
application module, an index usage monitoring module, an index
usage analysis module, an index
report generation module, and a self-adaptive index suggestion optimization module; the index analysis recommendation module is used to start from unhealthy statements, check related tables, access patterns, predicate categories and related fields, and propose candidate indexes based on each
SQL statement according to a candidate index generation
algorithm; after the generation of the candidate indexes that need to be created, the effectiveness of the candidate indexes is verified through two steps; the two steps specifically refer to verifying the benefits of the indexes on a single
SQL statement and verifying the benefits of the indexes on all affected statements under the overall application load.