60 lines
3.9 KiB
HTML
60 lines
3.9 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="Querying database monitor view 3020 - Index advised" />
|
|
<meta name="abstract" content="The index advisor information can be found in the Database Monitor view 3020 - Index advised (SQE)." />
|
|
<meta name="description" content="The index advisor information can be found in the Database Monitor view 3020 - Index advised (SQE)." />
|
|
<meta name="DC.Relation" scheme="URI" content="idxadvisor.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzajqadvise3020" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Querying database monitor view 3020 - Index advised</title>
|
|
</head>
|
|
<body id="rzajqadvise3020"><a name="rzajqadvise3020"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Querying database monitor view 3020 - Index advised</h1>
|
|
<div><p>The index advisor information can be found in the Database Monitor
|
|
view 3020 - Index advised (SQE).</p>
|
|
<div class="section"><p>The advisor information is stored in columns QQIDXA, QQIDXK and
|
|
QQIDXD. When the QQIDXA column contains a value of 'Y' the optimizer is advising
|
|
you to create an index using the key columns shown in column QQIDXD. The intention
|
|
of creating this index is to improve the performance of the query.</p>
|
|
</div>
|
|
<div class="section"><p>In the list of key columns contained in column QQIDXD the optimizer
|
|
has listed what it considers the suggested primary and secondary key columns.
|
|
Primary key columns are columns that should significantly reduce the number
|
|
of keys selected based on the corresponding query selection. Secondary key
|
|
columns are columns that may or may not significantly reduce the number of
|
|
keys selected.</p>
|
|
</div>
|
|
<div class="section"><p>Column QQIDXK contains the number of suggested primary key columns
|
|
that are listed in column QQIDXD. These are the left-most suggested key columns.
|
|
The remaining key columns are considered secondary key columns and are listed
|
|
in order of expected selectivity based on the query. For example, assuming
|
|
QQIDXK contains the value of 4 and QQIDXD specifies 7 key columns, then the
|
|
first 4 key columns specified in QQIDXK is the primary key columns. The remaining
|
|
3 key columns are the suggested secondary key columns.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="idxadvisor.htm" title="The query optimizer analyzes the row selection in the query and determines, based on default values, if creation of a permanent index improves performance. If the optimizer determines that a permanent index might be beneficial, it returns the key columns necessary to create the suggested index.">Query optimizer index advisor</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |