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

57 lines
3.6 KiB
HTML
Raw Permalink 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="Sources of join query performance problems" />
<meta name="abstract" content="The optimization algorithms described above benefit most join queries, but the performance of a few queries may be degraded." />
<meta name="description" content="The optimization algorithms described above benefit most join queries, but the performance of a few queries may be degraded." />
<meta name="DC.subject" content="problems, join query performance" />
<meta name="keywords" content="problems, join query performance" />
<meta name="DC.Relation" scheme="URI" content="perf24.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="rzajqjoinproblems" />
<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>Sources of join query performance problems</title>
</head>
<body id="rzajqjoinproblems"><a name="rzajqjoinproblems"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Sources of join query performance problems</h1>
<div><p>The optimization algorithms described above benefit most join queries,
but the performance of a few queries may be degraded.</p>
<div class="section"><p>This occurs when:</p>
<ul><li>An index is not available which provides average number of duplicate values
statistics for the potential join columns. </li>
<li>The query optimizer uses default filter factors to estimate the number
of rows being selected when applying local selection to the table because
indexes or column statistics do not exist over the selection columns. <p>Creating
indexes over the selection columns allow—s the query optimizer to make a more
accurate filtering estimate by using key range estimates.</p>
</li>
<li>The particular values selected for the join columns yield a significantly
greater number of matching rows than the average number of duplicate values
for all values of the join columns in the table (for example, the data is
not uniformly distributed). </li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="perf24.htm" title="A join operation is a complex function that requires special attention in order to achieve good performance. This section describes how DB2 Universal Database for iSeries implements join queries and how optimization choices are made by the query optimizer. It also describes design tips and techniques which help avoid or solve performance problems.">Join optimization</a></div>
</div>
</div>
</body>
</html>