|
Home >Online Product Documentation >Table of Contents >Parts of a Query Plan Parts of a Query PlanThe graphic representation of a query plan is a tree structure that provides the details of how DataDirect XQuery will execute the query for which the plan was generated. The query plan tree diagram is read-only, though it does provide navigation and formatting features. You can also print and save the query plan as HTML. In addition to the Plan node, the query plan tree can include Adaptors, Global Variables, and Local Functions nodes. These nodes are described in the following table. NavigationYou can navigate the tree to check where variables are defined and where they are referenced. For example, you can navigate from one adaptor's definition to its references and vice-versa. To navigate the tree, you can
l Use the toolbar displayed at the top of the tree
l Right-click an item in the tree and use the context-sensitive menu
l Scroll through the nodes on the tree diagram individually
Query Plan ToolbarThe query plan toolbar has buttons that help you navigate the variables defined in your XQuery code. These buttons are described in the following table. FormattingYou can change the font size used to display query plan text and symbols by right-clicking a tree node and selecting the font size you wish to use. Changes to font size affect the entire query plan, but they are not saved when you save the query plan as HTML. Saving a Query Plan as HTMLYou can save a query plan as an HTML document; you might wish to do this for review or presentation purposes, for example.
To save a query plan as HTML:
1. Select XQuery > Save Plan as HTML from the Stylus Studio menu.
Alternative: Click the Save Plan button on the Plan tab.
The Save As dialog box appears.
2. Choose a path and name for the HTML file.
3. Click Save.
|