Table of Contents

Search

  1. Preface
  2. Performance Tuning Overview
  3. Target Optimization
  4. Source Optimization
  5. Transformation Optimization
  6. Mapping Optimization
  7. Partitioned Mapping Optimization
  8. Run-time Optimization
  9. SQL Data Service Optimization
  10. Web Service Optimization
  11. Connections Optimization
  12. Data Transformation Optimization

Performance Tuning Guide

Performance Tuning Guide

SQL Data Service Query Plan

SQL Data Service Query Plan

When you view the query plan for an SQL data service, you view the graphical representation of the original query and the graphical representation of the optimized query. The graphical representation describes how the Data Integration Service processes the query. It includes the transformations and the order which the Data Integration Services processes each transformation.
The Developer tool uses the optimizer level that you set in the Developer tool to generate the optimized query. The optimized query displays the query as the Data Integration Service runs it.
For example, you want to query the CUSTOMERS virtual table in an SQL data service. In the
Data Viewer
view, you choose the default data viewer configuration settings, which sets the optimizer level for the query to normal.
You enter the following query in the
Data Viewer
view:
select * from CUSTOMERS where CUSTOMER_ID > 150000 order by LAST_NAME
When you view the SQL query plan, the Developer tool displays the following graphical representation of the query:
The graphical representation of the query contains five objects linked from left to right by arrows. The objects are labelled as follows: CUSTOMERS is linked to a WhereClause object. WhereClause is linked to an OrderByExpr object. OrderByExpr is linked to an OrderBy object. OrderBy is linked to an Output object.
The non-optimized view displays the query that you enter. The Developer tool displays the WHERE clause as a Filter transformation and the ORDER BY clause as a Sorter transformation. The Developer tool uses the pass-through Expression transformation to rename ports.
When you view the optimized query, the Developer tool displays the following graphical representation of the query:
The graphical representation of the optimized query contains six objects linked from left to right by arrows. The objects are labelled as follows: ReadDataObject is linked to an expr_CustomersDOMap_CUSTOMERSDOMap object. Expr_CUSTOMERSDOMap_CUSTOMERSDOMap is linked to an OrderByExpr object. OrderByExpr is linked to an OrderBy object. The OrderBy object is linked to an expr_output_OUTPUT_FIELD object. Expr_output_OUTPUT_FIELD is linked to an Output object.
The optimized view displays the query that the Data Integration Service runs. Because the optimizer level is normal, the Data Integration Service pushes the filter condition to the source data object. Pushing the filter condition increases query performance because it reduces the number of rows that the Data Integration Service reads from the source data object. Similar to the non-optimized query, the Developer tool displays the ORDER BY clause as a Sorter transformation. It uses pass-through Expression transformations to enforce the datatypes that you specify in the logical transformations.

0 COMMENTS

We’d like to hear from you!