Debian Codegraph @

docs/programmer_reference/heap_conf.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Heap access method specific configuration</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
10 <link rel="up" href="am_conf.html" title="Chapter 2.  Access Method Configuration" />
11 <link rel="prev" href="hash_conf.html" title="Hash access method specific configuration" />
12 <link rel="next" href="rq_conf.html" title="Queue and Recno access method specific configuration" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Heap access method specific configuration</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="hash_conf.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 2. 
26 Access Method Configuration
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="rq_conf.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="heap_conf"></a>Heap access method specific configuration</h2>
38 </div>
39 </div>
40 </div>
41 <p>
42 Configuring the Heap access method is fairly simple. Beyond the general
43 configuration required for any access method, you can configure how large
44 the database will become, as well as the amount by which the database grows.
45 </p>
46 <p>
47 If you provide no configuration relative to the heap size, then the
48 database will grow without bound. Whether this is desirable depends on
49 how much disk space is available to your application.
50 </p>
51 <p>
52 You can limit the size of the on-disk database file by using the
53 <a href="../api_reference/C/dbset_heapsize.html" class="olink">DB-&gt;set_heapsize()</a> method. If the size specified on this method is
54 reached, then further attempts to insert/update records will fail
55 with a <code class="literal">DB_HEAP_FULL</code> error message.
56 </p>
57 <p>
58 Heap databases are organized into regions, and each region is a constant
59 size. The size of the region in a heap database is limited by the page
60 size, the first page of the region contains a bitmap describing the
61 available space on the remaining pages in the region. When the database
62 experiences write contention, a region is added to reduce contention.
63 This means heap databases can grow in size very quickly. In order to
64 control the amount by which the database increases, the size of the region
65 is configurable via <a href="../api_reference/C/dbset_heap_regionsize.html" class="olink">DB-&gt;set_heap_regionsize()</a>.
66 </p>
67 </div>
68 <div class="navfooter">
69 <hr />
70 <table width="100%" summary="Navigation footer">
71 <tr>
72 <td width="40%" align="left"><a accesskey="p" href="hash_conf.html">Prev</a> </td>
73 <td width="20%" align="center">
74 <a accesskey="u" href="am_conf.html">Up</a>
75 </td>
76 <td width="40%" align="right"> <a accesskey="n" href="rq_conf.html">Next</a></td>
77 </tr>
78 <tr>
79 <td width="40%" align="left" valign="top">Hash access method specific configuration </td>
80 <td width="20%" align="center">
81 <a accesskey="h" href="index.html">Home</a>
82 </td>
83 <td width="40%" align="right" valign="top"> Queue and Recno access method specific configuration</td>
84 </tr>
85 </table>
86 </div>
87 </body>
88 </html>