The Index Impact analysis first creates the indexes on your database. Then it retrieves the query plan for each SQL statement that you have selected for your analyzer. When you set up the individual scenarios, you determine if you would like the indexes dropped or to leave them on your database.
If you do not have the analysis process drop the indexes, you can drop them in any one of the following ways:
In the tree pane (left pane), right-click the scenario name and select Go To Drop Indexes.
When you close the Index Impact Analyzer window, you are prompted to drop the indexes. Click Yes.
In the tree pane (left pane), click the scenario name and select the Create/Drop Indexes button at the top of the right pane. Click next to the Drop Indexes or Drop All Indexes pane.
You can make the changes permanent, in one of the following ways:
In the tree pane (left pane), right-click the scenario name and select Confirm Index Changes. Click Yes.
When you close the Configuration Analyzer window, you are prompted to rollback the changes. Click No.
The Index Impact Analysis Details window displays information about the creation of the indexes and the retrieval of the query plans. The Index Impact Analysis Details window displays after the Index Impact Analysis process is completed unless the Show details on next generation checkbox in the Index Impact Analysis Details window is unchecked.
To review the Index Impact Analysis Details window after completing Index Impact Analysis
Select View | Last Index Impact Analysis Details.
Review this information to see if an error occurred during the retrieval of the query plan. Errors may occur if the selected SQL statements are from one database and user and you have set another database and user in the drop-down boxes at the bottom left of the main window.
After creating an Index Impact Analysis, you can add more SQL statements from the SQL Repository to it.
To add more SQL statements to an Analysis
From the left pane, select the Analyzer in which you want to add the SQL.
Right-click and select Add SQL.
In the Add SQL window under the Select SQL to be added pane, check the SQL statements you want added.
Under the Select Scenario to include SQL pane, check the Scenarios you want the SQL added to.
Click OK to add the SQL, retrieve the query plans and re-execute the Scenario.
After creating an Index Impact Analysis, you can add more Scenarios to it.
To add a Scenario
In the left pane, right-click the Analyzer and select Add Scenario.
In the Add Scenario wizard, select the Index page and specify the information for the proposed new indexes. Click OK.
In the left pane, right-click on an Analyzer and select New Analysis.
In the New Analysis wizard, select the Continuing an existing Analyzer using the Analyzer’s selected SQL option.
From the Select Analyzer field, click the Analyzer name.
Select the Index page and specify the information for the proposed new indexes. Click OK.