In Interactive SQL you can determine which materialized view the optimizer used to satisfy a query.
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.
Start Interactive SQL and connect to the SQL Anywhere database.
Click Tools » Plan Viewer (or press Shift+F5).
Type the query in the SQL pane.
Select a Statistics level, a Cursor type and an Update status.
Click Get Plan.
Look on the Details and Advanced Details panes to see which materialized views, if any, were used to satisfy the query.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|