ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzajq_5.4.0.1/whentouseevis.htm

61 lines
3.6 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="When to create EVIs" />
<meta name="abstract" content="There are several instances when you should consider creating EVIs." />
<meta name="description" content="There are several instances when you should consider creating EVIs." />
<meta name="DC.subject" content="encoded vector index, creating" />
<meta name="keywords" content="encoded vector index, creating" />
<meta name="DC.Relation" scheme="URI" content="whatareevi.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="whentouseevis" />
<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>When to create EVIs</title>
</head>
<body id="whentouseevis"><a name="whentouseevis"><!-- --></a>
<img src="./delta.gif" alt="Start of change" /><!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">When to create EVIs</h1>
<div><p>There are several instances when you should consider creating EVIs.</p>
<div class="section"><p>Encoded vector indexes should be considered when any one of the
following is true:</p>
<ul><li>You want to gather 'live' statistics</li>
<li>Full table scan is currently being selected for the query</li>
<li>Selectivity of the query is 20%-70% and using skip sequential access with
dynamic bitmaps will speed up the scan</li>
<li>When a star schema join is expected to be used for star schema join queries. </li>
<li>When grouping or distinct queries are specified against a column, the
columns has a small number of distinct values and (if a column function is
specified at all) only the COUNT column function is used. </li>
</ul>
</div>
<div class="section"><p>Encoded vector indexes should be created with: </p>
<ul><li>Single key columns with a low number of distinct values expected</li>
<li>Keys columns with a low volatililty (they don't change often)</li>
<li>Maximum number of distinct values expected using the WITH n DISTINCT VALUES
clause</li>
<li> Single key over foreign key columns for a star schema model</li>
</ul>
</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>
<img src="./deltaend.gif" alt="End of change" /></body>
</html>