Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - SQL Usage » Performance improvements, diagnostics, and monitoring » Tips for improving performance » Tip: Use materialized views to improve query performance


Determining which materialized views were considered by the optimizer

In Interactive SQL you can determine which materialized view the optimizer used to satisfy a query.


There are no prerequisites for performing this task.

Context and remarks


When snapshot isolation is in use, the optimizer does not consider materialized views that were refreshed after the start of the snapshot for the current transaction.

  1. In Interactive SQL, connect to the database.

  2. Click Tools » Plan Viewer (or press Shift+F5).

  3. Type the query in the SQL pane.

  4. Select a Statistics level, a Cursor type, and an Update status.

  5. Click Get Plan.

  6. Look on the Details and Advanced Details panes to see which materialized views, if any, were used to satisfy the query.


The materialized views that were used to satisfy the query are displayed.

 See also