79 lines
5.9 KiB
HTML
79 lines
5.9 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="Factors that affect the size of DRDA query blocks" />
|
|
<meta name="abstract" content="If a large amount of data is being returned on a query, performance might be improved by increasing the size of the block of query data. How this is done depends on the types of servers participating in the query." />
|
|
<meta name="description" content="If a large amount of data is being returned on a query, performance might be improved by increasing the size of the block of query data. How this is done depends on the types of servers participating in the query." />
|
|
<meta name="DC.subject" content="factors that affect query block size, query block size, factors that affect the, size of query blocks, blocks, size factors, stored procedure" />
|
|
<meta name="keywords" content="factors that affect query block size, query block size, factors that affect the, size of query blocks, blocks, size factors, stored procedure" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1improveviadata.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/sbmrmtcmd.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/ovrdbf.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="rbal1factor" />
|
|
<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>Factors that affect the size of DRDA query blocks</title>
|
|
</head>
|
|
<body id="rbal1factor"><a name="rbal1factor"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Factors that affect the size of DRDA<sup>®</sup> query blocks</h1>
|
|
<div><p>If a large amount of data is being returned on a query, performance
|
|
might be improved by increasing the size of the block of query data. How this
|
|
is done depends on the types of servers participating in the query.</p>
|
|
<div class="section"><p>In an unlike environment, the size of the query block is determined
|
|
at the application requester by a parameter sent with the <span class="cmdname">Open Query</span> command.
|
|
When an <span class="keyword">iSeries™ server</span> is the application
|
|
requester (AR), it always initially requests a query block size of 32 KB.
|
|
It increases the size of each successive requested query block for large queries
|
|
that require multiple blocks to transmit. Other types of ARs give the user
|
|
a choice of what block size to use. The default query block sizes for DB2<sup>®</sup> Universal
|
|
Driver for SQLJ and JDBC, DB2 Universal Database™ for z/OS<sup>®</sup>, DB2
|
|
Universal Database™ for VM, and <span>DB2 Universal Database for Linux<sup>®</sup>, UNIX<sup>®</sup> and Windows<sup>®</sup></span> are
|
|
32 KB, 32 KB, 8 KB, and 32 KB, respectively. See the product documentation
|
|
for the platform being used as an AR when a <span class="keyword">DB2 Universal Database for iSeries</span> server
|
|
is connected to an unlike AR.</p>
|
|
</div>
|
|
<div class="section"><p>In the <span class="keyword">DB2 UDB for iSeries</span> to <span class="keyword">DB2 UDB for iSeries</span> environment, the query block
|
|
size is determined by the size of the buffer used by the database manager.
|
|
The default size is 4 KB. This can be changed on application servers that
|
|
are at the version 2 release 3, or later. In order to do this, use the <span class="cmdname">Submit
|
|
Remote Command (SBMRMTCMD)</span> command to send and execute an <span class="cmdname">Override
|
|
with Database File (OVRDBF)</span> command on the application server (AS).
|
|
Besides the name of the file being overridden, the (<span class="cmdname">OVRDBF</span>)
|
|
command should contain OVRSCOPE(*JOB) and SEQONLY(*YES nnn). The number of
|
|
records desired per block replaces nnn in the SEQONLY parameter. Increasing
|
|
the size of the database buffer not only can reduce communications overhead,
|
|
but can also reduce the number of calls to the database manager to retrieve
|
|
the rows.</p>
|
|
</div>
|
|
<div class="section"><p>You can also change the query block size using an SQL CALL statement
|
|
(a stored procedure) from non-<span class="keyword">iSeries server</span>s
|
|
or between <span class="keyword">iSeries server</span>s.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1improveviadata.htm" title="Distributed relational database performance is affected by the overall design of the database. The location of distributed data, the level of commitment control you use, and the design of your SQL indexes all affect performance.">Improve distributed relational database performance through the database</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/sbmrmtcmd.htm">Submit Remote Command (SBMRMTCMD) command</a></div>
|
|
<div><a href="../cl/ovrdbf.htm">Override with Database File (OVRDBF) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |