98 lines
6.6 KiB
HTML
98 lines
6.6 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="concept" />
|
||
|
<meta name="DC.Title" content="Recommendations for EVI use" />
|
||
|
<meta name="abstract" content="Encoded vector indexes are a powerful tool for providing fast data access in decision support and query reporting environments, but to ensure the effective use of EVIs, you should implement EVIs with the following guidelines:" />
|
||
|
<meta name="description" content="Encoded vector indexes are a powerful tool for providing fast data access in decision support and query reporting environments, but to ensure the effective use of EVIs, you should implement EVIs with the following guidelines:" />
|
||
|
<meta name="DC.subject" content="index, recommendations for encoded vector indexes, encoded vector index, recommendations" />
|
||
|
<meta name="keywords" content="index, recommendations for encoded vector indexes, encoded vector index, recommendations" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="whatareevi.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../db2/rbafzmstxcindx.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/chglf.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/dspfd.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="recommendationsforevi" />
|
||
|
<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>Recommendations for EVI use</title>
|
||
|
</head>
|
||
|
<body id="recommendationsforevi"><a name="recommendationsforevi"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Recommendations for EVI use</h1>
|
||
|
<div><p>Encoded vector indexes are a powerful tool for providing fast data
|
||
|
access in decision support and query reporting environments, but to ensure
|
||
|
the effective use of EVIs, you should implement EVIs with the following guidelines: </p>
|
||
|
<div class="section"><h4 class="sectiontitle">Create EVIs on</h4><ul><li>Read-only tables or tables with a minimum of INSERT, UPDATE, DELETE activity.</li>
|
||
|
<li>Key columns that are used in the WHERE clause - local selection predicates
|
||
|
of SQL requests.</li>
|
||
|
<li>Single key columns that have a relatively small set of distinct values.</li>
|
||
|
<li>Multiple key columns that result in a relatively small set of distinct
|
||
|
values. </li>
|
||
|
<li>Key columns that have a static or relatively static set of distinct values. </li>
|
||
|
<li>Non-unique key columns, with many duplicates.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Create EVIs with the maximum byte code size expected</h4><ul><li>Use the "WITH n DISTINCT VALUES" clause on the CREATE ENCODED VECTOR INDEX
|
||
|
statement. </li>
|
||
|
<li>If unsure, use a number greater than 65,535 to create a 4 byte code, thus
|
||
|
avoiding the EVI maintenance overhead of switching byte code sizes.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">When loading data</h4><ul><li>Drop EVIs, load data, create EVIs.</li>
|
||
|
<li>EVI byte code size will be assigned automatically based on the number
|
||
|
of actual distinct key values found in the table. </li>
|
||
|
<li>Symbol table will contain all key values, in order, no keys in overflow
|
||
|
area. </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Consider SMP and parallel index creation and maintenance</h4><p>Symmetrical
|
||
|
Multiprocessing (SMP) is a valuable tool for building and maintaining indexes
|
||
|
in parallel. The results of using the optional SMP feature of <span class="keyword">i5/OS™</span> are
|
||
|
faster index build times, and faster I/O velocities while maintaining indexes
|
||
|
in parallel. Using an SMP degree value of either *OPTIMIZE or *MAX, additional
|
||
|
multiple tasks and additional server resources are used to build or maintain
|
||
|
the indexes. With a degree value of *MAX, expect linear scalability on index
|
||
|
creation. For example, creating indexes on a 4 processor server
|
||
|
can be 4 times as fast as a 1 processor server. </p>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Checking values in the overflow area</h4><p>You can also
|
||
|
use the <span class="cmdname">Display File Description (DSPFD)</span> command (or iSeries™ Navigator
|
||
|
- Database) to check how many values are in the overflow area. Once the <span class="cmdname">DSPFD</span> command
|
||
|
is issued, check the overflow area parameter for details on the initial and
|
||
|
actual number of distinct key values in the overflow area. </p>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Using CHGLF to rebuild an index's access path</h4><p>Use
|
||
|
the <span class="cmdname">Change Logical File (CHGLF)</span> command with the attribute
|
||
|
Force Rebuild Access Path set to <em>YES</em> (FRCRBDAP(*YES)). This command
|
||
|
accomplishes the same thing as dropping and recreating the index, but it does
|
||
|
not require that you know about how the index was built. This command is especially
|
||
|
effective for applications where the original index definitions are not available,
|
||
|
or for refreshing the access path.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="whatareevi.htm" title="An encoded vector index (EVI) is an index object that is used by the query optimizer and database engine to provide fast data access in decision support and query reporting environments.">Encoded vector indexes</a></div>
|
||
|
</div>
|
||
|
<div class="relinfo"><strong>Related information</strong><br />
|
||
|
<div><a href="../db2/rbafzmstxcindx.htm">SQL Create Index statement</a></div>
|
||
|
<div><a href="../cl/chglf.htm">Change Logical File (CHGLF) command</a></div>
|
||
|
<div><a href="../cl/dspfd.htm">Display File Description (DSPFD) command</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|