Describe the bug
On very large systems, graph automation can be slowed due to MariaDB/MySQL selecting a poor index to control queries for graphs. In these cases, it's real important to force MariaDB/MySQL to use an optimal index for the queries. The MariaDB/MySQL Query Optimized does not always get it right.
Expected behavior
Faster running automation.