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

76 lines
4.8 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 Dispatcher" />
<meta name="abstract" content="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." />
<meta name="description" content="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." />
<meta name="DC.subject" content="query dispatcher, definitions, query dispatcher" />
<meta name="keywords" content="query dispatcher, definitions, query dispatcher" />
<meta name="DC.Relation" scheme="URI" content="queryoptimize.htm" />
<meta name="DC.Relation" scheme="URI" content="rzajqmqtsupport.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="rzajqdispatcher" />
<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 Dispatcher</title>
</head>
<body id="rzajqdispatcher"><a name="rzajqdispatcher"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Query Dispatcher</h1>
<div><p>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.</p>
<p><img src="./delta.gif" alt="Start of change" />Currently, the Dispatcher will route an SQL statement to CQE
if it find that the statement references or contains any of the following: <img src="./deltaend.gif" alt="End of change" /></p>
<ul><li>INSERT WITH VALUES statement or the target of an INSERT with subselect
statement</li>
<li>NLSS or CCSID translation between columns</li>
<li>Lateral correlation</li>
<li>Logical files</li>
<li>Datalink columns</li>
<li>Tables with Read Triggers</li>
<li>User-defined table functions</li>
<li>Read-only queries with more than 1000 dataspaces or updateable queries
with more than 256 dataspaces.</li>
<li>DB2<sup>®</sup> Multisystem
tables</li>
<li>non-SQL queries, for example the QQQQry API, Query/400, or OPNQRYF</li>
</ul>
<p>The Dispatcher also has the built-in capability to re-route an SQL query
to CQE that was initially routed to SQE. Unless the IGNORE_DERIVED_INDEX
option with a parameter value of *YES is specified, a query will typically
be reverted back to CQE from SQE whenever the Optimizer processes table objects
that have any of the following logical files or indexes defined: </p>
<ul><li>Logical files with the SELECT/OMIT DDS keyword specified</li>
<li>Non-standard indexes or derived keys, for example logical files specifying
the DDS keywords RENAME or Alternate Collating Sequence (ACS) on any field
referenced in the key</li>
<li>Sort Sequence NLSS specified for the index or logical file</li>
</ul>
<p>As new functionality is added in the future, the Dispatcher will route
more queries to SQE and increasingly fewer to CQE.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="queryoptimize.htm" title="DB2 UDB for iSeries provides two query engines to process queries: the Classic Query Engine (CQE) and the SQL Query Engine (SQE).">Query Engine Overview</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzajqmqtsupport.htm" title="Although a MQT can contain almost any query, the optimizer only supports a limited set of query functions when matching MQTs to user specified queries. The user specified query and the MQT query must both be supported by the SQE optimizer.">MQT supported function</a></div>
</div>
</div>
</body>
</html>