Execute Query View
Full Execute Query Interface This image shows the main interface of the Execute Query View. Key elements include:- Selected Instances: At the top of the screen, the user can select one or more databases (e.g., demo-db, xtra-demo-instance-01, etc.). This allows the query to be executed across multiple databases at once.
- SQL Query Editor: Users can type or paste their SQL queries directly into the text box. In this example, a query is created to examine row usage and index efficiency. This query can be run immediately or saved as a template for future use.
- Templates Section: Below the query editor, commonly used templates are displayed (e.g., Schema Drift, View User Privileges, Poor Index Usage). These templates help automate repetitive query tasks and reduce the need for manual input.
- Execute/Cancel Options: Users can execute the query on the selected instances or cancel the operation if needed.










- SUM_ROWS_EXAMINED and SUM_ROWS_SENT**
- DIGEST_TEXT
- RECOMMENDATION: Focused on advising users to optimize index usage for queries that are underperforming due to poor index selection.


- Percentage: The percentage of time each query consumed relative to others.
- Total: Total time spent on the query.
- Calls: Number of times the query was called.
- Mean: Average time per query execution.
- SQL Digest Text: A shortened version of the SQL text for easier identification.


- SUM_ROWS_EXAMINED and SUM_ROWS_SENT: These columns show the number of rows examined and sent by the query.
- DIGEST_TEXT: This column captures a summarized version of the SQL statement executed, offering insight into the query type.
- RECOMMENDATION: Here, users can view recommendations for optimizing index usage or improving query efficiency.
