86 lines
6.2 KiB
HTML
86 lines
6.2 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="Query Engine Overview" />
|
|
<meta name="abstract" content="DB2 UDB for iSeries provides two query engines to process queries: the Classic Query Engine (CQE) and the SQL Query Engine (SQE)." />
|
|
<meta name="description" content="DB2 UDB for iSeries provides two query engines to process queries: the Classic Query Engine (CQE) and the SQL Query Engine (SQE)." />
|
|
<meta name="DC.subject" content="query engine overview" />
|
|
<meta name="keywords" content="query engine overview" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqkickoff.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqsqecqe.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqdispatcher.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqstatsmgr.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqcache.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzajp/rzajpkickoff.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafykickoff.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../apis/qqqqry.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/opnqryf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/runsqlstm.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="queryoptimize" />
|
|
<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>Query Engine Overview</title>
|
|
</head>
|
|
<body id="queryoptimize"><a name="queryoptimize"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Query Engine Overview</h1>
|
|
<div><p>DB2<sup>®</sup> UDB
|
|
for iSeries™ provides
|
|
two query engines to process queries: the Classic Query Engine (CQE) and the
|
|
SQL Query Engine (SQE). </p>
|
|
<p>The CQE processes queries originating from non-SQL interfaces: OPNQRYF,
|
|
Query/400, and QQQQry API. SQL based interfaces, such as ODBC, JDBC, CLI,
|
|
Query Manager, Net.Data<sup>®</sup>,
|
|
RUNSQLSTM, and embedded or interactive SQL, run through the SQE. For ease
|
|
of use, the routing decision for processing the query by either CQE or SQE
|
|
is pervasive and under the control of the system. The requesting user or application
|
|
program cannot control or influence this behavior. However, a better understanding
|
|
of the engines and of the process that determines which path a query takes
|
|
can lead you to a better understand of your query's performance. </p>
|
|
<p>Along with the new query engine, several more components were created and
|
|
other existing components were updated. Additionally, new data access methods
|
|
were created for SQE. </p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzajqsqecqe.htm">SQE and CQE Engines</a></strong><br />
|
|
To fully understand the implementation of query management and
|
|
processing in DB2 UDB
|
|
for iSeries on <span class="keyword">i5/OS™</span> V5R2 and subsequent releases,
|
|
it is important to see how the queries were implemented in releases of <span class="keyword">i5/OS™</span> previous to V5R2.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajqdispatcher.htm">Query Dispatcher</a></strong><br />
|
|
The function of the Dispatcher is to route the query request to either CQE or SQE, depending on the attributes of the query. All queries are processed by the Dispatcher and you cannot bypass it.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajqstatsmgr.htm">Statistics Manager</a></strong><br />
|
|
In releases before V5R2, the retrieval of statistics was a function of the Optimizer. When the Optimizer needed to know information about a table, it looked at the table description to retrieve the row count and table size. If an index was available, the Optimizer might then extract further information about the data in the table. In V5R2, the collection of statistics was removed from the Optimizer and is now handled by a separate component called the Statistics Manager.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajqcache.htm">Plan Cache</a></strong><br />
|
|
The Plan Cache is a repository that contains the access plans for queries that were optimized by SQE.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzajqkickoff.htm" title="The goal of database performance tuning is to minimize the response time of your queries and to make the best use of your server's resources by minimizing network traffic, disk I/O, and CPU time. This goal can only be achieved by understanding the logical and physical structure of your data, understanding the applications used on your server, and understanding how the many conflicting uses of your database may impact database performance.">Performance and query optimization</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../rzajp/rzajpkickoff.htm">Embedded SQL programming</a></div>
|
|
<div><a href="../sqlp/rbafykickoff.htm">SQL programming</a></div>
|
|
<div><a href="../apis/qqqqry.htm">Query (QQQQRY) API</a></div>
|
|
<div><a href="../cl/opnqryf.htm">Open Query File (OPNQRYF) command</a></div>
|
|
<div><a href="../cl/runsqlstm.htm">Run SQL Statements (RUNSQLSTM) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |