Query Plans in Stylus Studio
In Stylus Studio, a query plan for the DataDirect XQuery® processor becomes available as soon as your XQuery code is well-formed. (Query plans are created only by the DataDirect XQuery® processor.) The query plan changes with your XQuery code - if you add a new data source, for example, the query plan is modified to reflect the new source.
You can view query plans in Stylus Studio to gain insight into how the DataDirect XQuery® processor will execute your XQuery code, including seeing the type of SQL statements that are used to access relational data, when XML streaming is being used, which temporary tables are being created, when variables are being called, and so on. Query plans are displayed on the Plan tab of the XQuery Editor. An example of a query plan is shown in Figure 398.