75 lines
5.6 KiB
HTML
75 lines
5.6 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="Temporary bitmap" />
|
|
<meta name="abstract" content="The temporary bitmap is a temporary object that allows the optimizer to sequence rows based upon their row address (their row number). The bitmap can be either scanned or probed by the optimizer to satisfy different operations of the query." />
|
|
<meta name="description" content="The temporary bitmap is a temporary object that allows the optimizer to sequence rows based upon their row address (their row number). The bitmap can be either scanned or probed by the optimizer to satisfy different operations of the query." />
|
|
<meta name="DC.subject" content="definitions, temporary bitmap access method, temporary bitmap, access method, bitmap, access method" />
|
|
<meta name="keywords" content="definitions, temporary bitmap access method, temporary bitmap, access method, bitmap, access method" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqtempobj.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqbitscan.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqbitprobe.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="rzajqtempbit" />
|
|
<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>Temporary bitmap</title>
|
|
</head>
|
|
<body id="rzajqtempbit"><a name="rzajqtempbit"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Temporary bitmap</h1>
|
|
<div><p>The temporary bitmap is a temporary object that allows the optimizer
|
|
to sequence rows based upon their row address (their row number). The bitmap
|
|
can be either scanned or probed by the optimizer to satisfy different operations
|
|
of the query.</p>
|
|
<div class="section"><p>A temporary bitmap is a data structure that uses a bitmap to represent
|
|
all of the row numbers for a table. Since each row is represented by a separate
|
|
bit, all of the rows within a table can be represented in a fairly condensed
|
|
form. When a row is selected by the temporary, the bit within the bitmap that
|
|
corresponds to the selected row is set on. After the temporary bitmap is populated,
|
|
all of the selected rows can be retrieved in a sorted manner for quick and
|
|
efficient retrieval. The temporary only represents the row number for the
|
|
associated selected rows. No table data is present within the temporary, so
|
|
a table probe operation is typically associated with this temporary
|
|
in order to retrieve the underlying table data. Because the bitmap is by
|
|
definition sorted, the random I/O associated with the table probe operation
|
|
can be performed more efficiently. The database manager will perform pre-fetch
|
|
or look ahead logic to determine if multiple rows are located on adjacent
|
|
pages. If so, the table probe will request a larger I/O to bring the rows
|
|
into main memory more efficiently. </p>
|
|
</div>
|
|
<div class="section"><p>A temporary bitmap is an internal data structure and can only
|
|
be created by the database manager.</p>
|
|
</div>
|
|
<div class="section"><p>Visual explain icon:</p>
|
|
</div>
|
|
<div class="section"><br /><img src="rzajq526.gif" alt="Temporary bitmap icon" /><br /></div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzajqbitscan.htm">Bitmap scan</a></strong><br />
|
|
During a bitmap scan operation, the entire temporary bitmap is scanned and all of the row addresses contained within the bitmap will be processed. A bitmap scan is generally considered when the optimizer is considering a plan that involves an encoded vector index or if the cost of the random I/O associated with an index probe or scan operation can be reduced by first preprocessing and sorting the row numbers associated with the Table Probe operation.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajqbitprobe.htm">Bitmap probe</a></strong><br />
|
|
A bitmap probe operation is used to test row numbers generated by a separate operation against the selected rows of a temporary bitmap. The row numbers can be generated by any operation that constructs a row number for a table. That row number is then used to probe into a temporary bitmap to determine if that row number matches the selection used to generate the temporary bitmap.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzajqtempobj.htm" title="Temporary objects are created by the optimizer in order to process a query. In general, these temporary objects are internal objects and cannot be accessed by a user.">Temporary objects and access methods</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |