Analyzing View Performance

Analyze the performance of a view directly in the Data Builder with the Runtime Metrics tool. Receive detailed information about your view by creating runtime metrics, creating an Explain Plan directly or starting the View Analyzer to improve the performance of your view.

Context

The Runtime Metrics tool helps analyze the performance of your view by executing two benchmark queries on a view and measuring their runtime and consumed peak memory. Additionally, the lineage of the view is analyzed to determine the performance through important indications such as the number of sources, number of federated remote tables, and the number of local tables (file). You can review the metrics of your entire view or refine your metrics to look at only the metrics for remote statements.

Procedure

  1. In the side navigation area, click (Data Builder), select a space if necessary. Select the view you want to analyze the performance of.
    • The Runtime Metrics tool can be accessed from the Data Builder toolbar.

    • The Runtime Metrics tool can be used in both Graphical and SQL views.

  2. Click on the (Runtime Metrics) icon in the toolbar.
  3. From the drop down menu, click Create Runtime Metrics.
  4. Click Start Run to begin the performance analysis.
  5. [optional] Click on Start View Analyzer if you want more information to help optimize your view.
  6. [optional] Click on the (Runtime Metrics) icon in the toolbar and Create Runtime Metrics again after making any changes to your model. This will show comparative metrics of your last two runs.

Results

Main View

Property

Description

Time

Shows the date and time of the latest run and the previous run.

Duration (Statement Type: Select 1000 Rows)

The duration of the Select * From View Limit 1000 query run measured in seconds.

Peak Memory (Statement type: Select 1000 Rows)

Peak memory usage of the run of the query Select * From View Limit 1000.

Select Count * From View

A database query to get the number of records of a view. This is a query to retrieve runtime metrics to evaluate the performance of a view.

Duration (Statement Type: Count All Rows)

The duration of the Select Count * From View query run measured in seconds.

Peak Memory (Statement Type: Count All Rows)

Peak memory usage of the run of the query Select Count * From View.

Number of Rows

Shows the number of rows contained in the view.

Overall Number of Sources

Shows the number of sources contained in the view.

Data Access

Shows how you currently access your view.

  • Persisted: The view is persisted can be used immediately.

  • Partially Persisted: Not all view data has been persisted. If your view contains an input parameter, only records that match the input parameter default value are persisted.

  • Virtual: The view is accessed directly, no intermediate persistence is used. Or the view was persisted and has now been turned into virtual to free up memory space, for example.

Local Tables (File)

Shows the number of number of local tables (file).

Federated Remote Tables (with Limited Adapter Capabilities)

Shows the number of federated remote tables (with limited adapter capabilities).

Start Run

Click Start Run to start runtime metrics run.

Cancel Run

Click Cancel Run to cancel the current runtime metrics run.

Start View Analyzer

Click Start View Analyzer to navigate to the View Analyzer feature in the Data Integration Monitor. You need DWC Data Integration (Runtime) privilege to open the View Analyzer. For more information see, Getting Started with View Analyzer.

The metrics of the last two runs will be shown to help evaluate changes in the performance of your view.

Remote Statements

Property

Description

Remote Tables

Shows the names of the entities that a remote query accessed. A query can reference one or multiple entities, depending on the available features of the underlying connection type. The remote statement type can be identified by the icon on the left side beside the name.

There are three types of remote statements that do not have an icon:

Space

Shows the name of the space that the remote table is in.

Connection

Shows the name of the connection the remote statement used.

Statement Type

Shows the statement type: Count all rows or Count 1000 rows. You can choose from the tabs above the table to view:

  • All - View all remote tables

  • Statement Type: 1000 Rows: View only remote tables labeled as "Select 1000 rows".

  • Statement Type: Count All: View only remote tables labeled as "Count all rows".

Start Time

Shows the date and time the latest remote processing started.

End Time

Shows the date and time the latest remote processing ended.

Duration

Shows the duration of the latest run of the remote statement on the tenant database.

Rows

Shows the number of rows transferred from the remote system.

Size (MiB)

Shows the size of the data exchange on protocol level during execution of the remote statement.

Open Remote Query Monitor

Click Open Remote Query Monitor above the table to go directly to the Remote Queries Monitor. See Monitoring Remote Queries.

Start Run

Click Start Run to start runtime metrics run.

Cancel Run

Click Cancel Run to cancel the current runtime metrics run.

Start View Analyzer

Click Start View Analyzer to navigate to the View Analyzer feature in the Data Integration Monitor. You need DWC Data Integration (Runtime) privilege to open the View Analyzer. For more information see, Getting Started with View Analyzer.

Source Objects

Property

Description

Entity Name

Shows the names of the objects in the lineage graph.

Space

Shows the name of the space that the object is in.

Statement Type

Shows the name of the space that the object is in.

  • All - View all remote tables

  • Statement Type: 1000 Rows: View only remote tables labeled as "Select 1000 rows".

  • Statement Type: Count All: View only remote tables labeled as "Count all rows".

Duration

Shows the duration of the latest run of the relevant object.

Rows

Shows the number of rows contained in the object.

Peak Memory (MiB)

Shows the peak memory usage of the run of the query.

Start Run

Click Start Run to start runtime metrics run.

Cancel Run

Click Cancel Run to cancel the current runtime metrics run.

Start View Analyzer

Click Start View Analyzer to navigate to the View Analyzer feature in the Data Integration Monitor. You need DWC Data Integration (Runtime) privilege to open the View Analyzer. For more information see, Getting Started with View Analyzer.