---
title: "Re-enabling indexes for tables in MySQL"
description: "Indexes disabled on MySQL tables can cause slow GUI operations and report generation in OP5. Re-enable indexes by running the enable keys query after a full backup and during a scheduled maintenance window."
url: "https://docs.itrsgroup.com/docs/faq/op5/360015612017-op5-monitor-re-enabling-indexes-for-tables-in-mysql/index.html"
---
## Re-enabling indexes may take a long time

If you find tables with disabled indexes, make sure you run both a full `op5-backup` and schedule a maintenance window efore running the `enable keys` query below.

If you are experiencing very slow GUI operations or report generations, it's possible that indexes are not enabled on one or more of your tables. Run the following query:

```
## mysql merlin -e 'SELECT DISTINCT table_name, index_name, comment FROM information_schema.statistics;' | grep -i disable
```

This command should not give any results, if it does show you a table name and an indication that the index is disabled, run the following

```
## mysql merlin -e "ALTER TABLE report_data enable keys"
```

Replace "report\_data" with the relevant table name.


