Debian Codegraph @

docs/bdb-sql/bdb-concepts.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>Berkeley DB Concepts</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="dbsqlbasics.html" title="Chapter 1. Berkeley DB SQL: The Absolute Basics" />
11 <link rel="prev" href="miscdiff.html" title="Miscellaneous Differences" />
12 <link rel="next" href="sql_encryption.html" title="Encryption" />
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">Berkeley DB Concepts</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="miscdiff.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 1. Berkeley DB SQL: The Absolute Basics</th>
26 <td width="20%" align="right"> <a accesskey="n" href="sql_encryption.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="sect1" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title" style="clear: both"><a id="bdb-concepts"></a>Berkeley DB Concepts</h2>
36 </div>
37 </div>
38 </div>
39 <p>
40 If you are a SQLite user who is migrating to the BDB SQL interface,
41 then there are a few Berkeley DB-specific concepts you might want
42 to know about.
43 </p>
44 <div class="itemizedlist">
45 <ul type="disc">
46 <li>
47 <p>
48 Environments. The directory that is created
49 alongside your database file, and which ends with
50 the "-journal" suffix, is actually a Berkeley DB
51 environment directory.
52 </p>
53 </li>
54 <li>
55 <p>
56 The Locking Subsystem
57 </p>
58 <p>
59 The Berkeley DB library implements locking in a different
60 way to SQLite. SQLite implements locking at a database
61 level - any operation will take a lock on the entire
62 database. Berkeley DB implements a scheme called page
63 level locking. The database divides data into relatively
64 small blocks. Each block corresponds to a page in
65 database terms. Each block can contain multiple pieces
66 of user information. Berkeley DB takes locks on
67 individual pages. This allows for greater concurrency
68 in applications, but means that applications are more
69 likely to encounter deadlocks.
70 </p>
71 <p>
72 See:
73 <a class="xref" href="lockingnotes.html" title="Chapter 2. Locking Notes">Locking Notes</a>
74 for more information.
75 </p>
76 </li>
77 <li>
78 <p>
79 The Journal Subsystem
80 </p>
81 <p>
82 The BDB SQL interface implements write ahead logging (WAL),
83 it stores journal files differently to the SQLite
84 WAL implementation. BDB SQL interface rolls over journal files
85 when they get to a certain size (default 10MB). It is
86 possible for the to be multiple journal files active
87 at one time with BDB SQL interface.
88 </p>
89 </li>
90 </ul>
91 </div>
92 </div>
93 <div class="navfooter">
94 <hr />
95 <table width="100%" summary="Navigation footer">
96 <tr>
97 <td width="40%" align="left"><a accesskey="p" href="miscdiff.html">Prev</a> </td>
98 <td width="20%" align="center">
99 <a accesskey="u" href="dbsqlbasics.html">Up</a>
100 </td>
101 <td width="40%" align="right"> <a accesskey="n" href="sql_encryption.html">Next</a></td>
102 </tr>
103 <tr>
104 <td width="40%" align="left" valign="top">Miscellaneous Differences </td>
105 <td width="20%" align="center">
106 <a accesskey="h" href="index.html">Home</a>
107 </td>
108 <td width="40%" align="right" valign="top"> Encryption</td>
109 </tr>
110 </table>
111 </div>
112 </body>
113 </html>