Wednesday, 25 July 2018

MySQL: Script to find Missing Indexes for particular type of Columns

In this post, I am sharing a script to find missing indexes in MySQL only for those columns which name ended with ‘_id’.
The full table scanning is always creating a performance issue for any database.
As a Database Professional, you might be adding database indexes on a table but periodically the volume of data is changing so we need to analyze the old indexes, or we should find missing indexes which may require for query optimizer.
On the other hand, Database Administrator may also require a report on missing indexes which they can share with developers and users so that they can modify it.

0 comments:

Post a Comment