Before you change a query, study its query plan to determine the kind and amount of resources it requires. The query plan shows what parallel scans are used, the maximum number of threads required, the indexes used, and so on. Then examine your data model to see if the changes this chapter suggests will improve it.
You can display the query plan with one of the following methods:
This SQL statement displays the chosen query plan. For a description of the SET EXPLAIN ON output, see Query Plan Report.
This SQL statement displays the chosen query plan and does not execute the query.
For more information on these EXPLAIN directives, see EXPLAIN Directives.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]