Debian Codegraph @

docs/bdb-sql/dbfeatures.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>Chapter 3. Berkeley DB Features</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="Getting Started with the Oracle Berkeley DB SQL APIs" />
10 <link rel="up" href="index.html" title="Getting Started with the Oracle Berkeley DB SQL APIs" />
11 <link rel="prev" href="lockhandling.html" title="Lock Handling" />
12 <link rel="next" href="mvcc.html" title="Using Multiversion Concurrency Control" />
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">Chapter 3. Berkeley DB Features</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="lockhandling.html">Prev</a> </td>
25 <th width="60%" align="center"> </th>
26 <td width="20%" align="right"> <a accesskey="n" href="mvcc.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="chapter" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title"><a id="dbfeatures"></a>Chapter 3. Berkeley DB Features</h2>
36 </div>
37 </div>
38 </div>
39 <div class="toc">
40 <p>
41 <b>Table of Contents</b>
42 </p>
43 <dl>
44 <dt>
45 <span class="sect1">
46 <a href="dbfeatures.html#bulkloading">Using Bulk Loading</a>
47 </span>
48 </dt>
49 <dt>
50 <span class="sect1">
51 <a href="mvcc.html">Using Multiversion Concurrency Control</a>
52 </span>
53 </dt>
54 <dt>
55 <span class="sect1">
56 <a href="selectpage_size.html">Selecting the Page Size</a>
57 </span>
58 </dt>
59 </dl>
60 </div>
61 <p>
62 When using the Berkeley DB SQL API, there are features that you
63 can manage using PRAGMAs that are unique to Berkeley DB. This
64 chapter discusses these features.
65 </p>
66 <div class="sect1" lang="en" xml:lang="en">
67 <div class="titlepage">
68 <div>
69 <div>
70 <h2 class="title" style="clear: both"><a id="bulkloading"></a>Using Bulk Loading</h2>
71 </div>
72 </div>
73 </div>
74 <p>
75 Bulk loading is an I/O optimization feature that is useful
76 when loading large amounts of data to the database inside
77 of a single transaction.
78 The bulk load optimization avoids writing some log records to
79 the journal file. This can provide significant performance
80 benefits when loading a large number of new rows into a
81 database.
82 </p>
83 <p>
84 When you use bulk load, nested transactions are
85 disabled. This means that you cannot undo any
86 single operation. Instead, if you want to undo a
87 given operation, you must undo everything performed
88 within the transaction.
89 </p>
90 <p>
91 It is not possible to use the bulk load functionality when
92 replication is enabled.
93 </p>
94 <p>
95 To enable bulk loading, use:
96 </p>
97 <p>
98 <span class="bold"><strong>PRAGMA TXN_BULK</strong></span> = 0 | 1;
99 </p>
100 <p>
101 Default value is <code class="literal">0</code>, which means the
102 PRAGMA is turned off and so bulk loading is not in use.
103 <code class="literal">1</code> means bulk loading is in use.
104 </p>
105 </div>
106 </div>
107 <div class="navfooter">
108 <hr />
109 <table width="100%" summary="Navigation footer">
110 <tr>
111 <td width="40%" align="left"><a accesskey="p" href="lockhandling.html">Prev</a> </td>
112 <td width="20%" align="center"> </td>
113 <td width="40%" align="right"> <a accesskey="n" href="mvcc.html">Next</a></td>
114 </tr>
115 <tr>
116 <td width="40%" align="left" valign="top">Lock Handling </td>
117 <td width="20%" align="center">
118 <a accesskey="h" href="index.html">Home</a>
119 </td>
120 <td width="40%" align="right" valign="top"> Using Multiversion Concurrency Control</td>
121 </tr>
122 </table>
123 </div>
124 </body>
125 </html>