<!--
  Copyright IBM Corp. 2007 All rights reserved.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<table name="applicationPerformance">
    <sql_name>SYSIBMADM.APPL_PERFORMANCE</sql_name>
    <singular_name>Application Performance</singular_name>
    <plural_name>Application Performance</plural_name>
 <description>This view displays the percentage of rows selected by an application. 
 This view can be used to look for applications that might be performing large table scans or to look for potentially troublesome queries.
 Each row represents a    
  <a onclick="OpenURLInFloatingWindow('http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/c0005409.htm?noframes=true');">DB2 agent</a>.
  This list is based on the <a onclick="OpenURLInFloatingWindow('http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/r0022012.htm?noframes=true');">SYSIBMADM.APPL_PERFORMANCE</a> administrative view.
 </description>
    <rows_per_page>50</rows_per_page>
 <order_by_index name="percent_rows_selected" direction="D"/>
    <display_columns>
        <col type="column" name="agent_id"></col>    
        <col type="reference" name="application"></col>
        <col type="column" name="appl_name"></col>     
        <col type="reference" name="authid"></col>           
        <col type="column" name="authid"></col>        
        <col type="column" name="percent_rows_selected"></col>
        <col type="column" name="dbpartitionnum"></col>
        <col type="column" name="snapshot_timestamp"></col>        
    </display_columns>
  <reference name="application">
   <c_title></c_title>
   <reftype>table</reftype>
   <refvalue>Performance/applications</refvalue>
   <icon>images/icon-application.gif</icon>
   <ref foreign_column_name="applname">
    <local_column_name>appl_name</local_column_name>
   </ref>
  </reference>      
  <reference name="authid">
   <c_title></c_title>
   <reftype>table</reftype>
   <refvalue>Authority/authids</refvalue>
   <icon>images/icon-user.gif</icon>      
   <ref foreign_column_name="authid">
    <local_column_name>authid</local_column_name>
   </ref>
  </reference>   
    <column name="snapshot_timestamp">
        <c_sql_name>SNAPSHOT_TIMESTAMP</c_sql_name>
        <c_title>Snapshot</c_title>
        <c_presentation>n</c_presentation>
        <c_drill>n</c_drill>
    </column>
    <column name="authid">
        <c_sql_name>AUTHID</c_sql_name>
        <c_title>Authorization ID</c_title>
        <c_presentation>s</c_presentation>
    </column>
    <column name="appl_name">
        <c_sql_name>APPL_NAME</c_sql_name>
        <c_title>Application Name</c_title>
        <c_presentation>s</c_presentation>
    </column>
    <column name="agent_id">
        <c_sql_name>AGENT_ID</c_sql_name>
        <c_title>Agent ID</c_title>
        <c_presentation>n</c_presentation>
    </column>
    <column name="percent_rows_selected">
        <c_sql_name>PERCENT_ROWS_SELECTED</c_sql_name>
        <c_title>Percent of Rows selected</c_title>
        <c_presentation>n</c_presentation>
        <c_drill>n</c_drill>
    </column>
    <column name="dbpartitionnum">
        <c_sql_name>DBPARTITIONNUM</c_sql_name>
        <c_title>Partition Number</c_title>
        <c_presentation>n</c_presentation>
    </column>
</table>