ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaik_5.4.0.1/rzaiksqlperfgencons.htm

85 lines
4.3 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="SQL performance general considerations" />
<meta name="abstract" content="Performance of SQL in application programs is important to ALL server users, because inefficient usage of SQL can waste server resources." />
<meta name="description" content="Performance of SQL in application programs is important to ALL server users, because inefficient usage of SQL can waste server resources." />
<meta name="DC.Relation" scheme="URI" content="rzaiksqlperf.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="sqlperfgencons" />
<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>SQL performance general considerations</title>
</head>
<body id="sqlperfgencons"><a name="sqlperfgencons"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SQL performance general considerations</h1>
<div><p>Performance of <span class="keyword">SQL</span> in
application programs is important to ALL server users, because inefficient
usage of <span class="keyword">SQL</span> can waste
server resources.</p>
<div class="section"><p>The primary goal in using <span class="keyword">SQL</span> is
to obtain the correct results for your database request, and in a timely manner.</p>
</div>
<div class="section"><p>Before you start designing for performance, review the following
considerations: </p>
<dl><dt class="dlterm">When to consider performance:</dt>
<dd> <ul><li>Database with over 10,000 rows - Performance impact: <strong>noticeable</strong></li>
<li>Database with over 100,000 rows - Performance impact: <strong>concern</strong></li>
<li>When repetitively using complex queries</li>
<li>When using multiple work stations with high transaction rates</li>
</ul>
</dd>
<dt class="dlterm">What resource to optimize:</dt>
<dd> <ul><li>I/O usage</li>
<li>CPU usage</li>
<li>Effective usage of indexes</li>
<li>OPEN/CLOSE performance</li>
<li>Concurrency (COMMIT)</li>
</ul>
</dd>
<dt class="dlterm">How to design for performance:</dt>
<dd> <ul><li><strong>Database design:</strong> <ul><li>Table structure</li>
<li>Indexes</li>
<li>Table data management</li>
<li>Journal management</li>
</ul>
</li>
<li><strong>Application design:</strong> <ul><li>Structure of programs involved</li>
</ul>
</li>
<li><strong>Program design:</strong> <ul><li>Coding practices</li>
<li>Performance monitoring</li>
</ul>
</li>
</ul>
</dd>
</dl>
</div>
<div class="section"><p>The <em>SQL Reference</em> book contains additional information.
You can view an HTML online version of the book, or print a PDF version, from
the <a href="../db2/rbafzmst02.htm">DB2
Universal Database™ for iSeries™ SQL Reference</a> iSeries Information Center topic.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiksqlperf.htm" title="Good application design includes the efficient use of machine resources. To run in a manner that is acceptable to the end user, an application program must be efficient in operation, and must run with adequate response time.">SQL performance</a></div>
</div>
</div>
</body>
</html>