Debian Codegraph @

docs/programmer_reference/intro_need.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>Do you need Berkeley DB?</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="intro.html" title="Chapter 1.  Introduction" />
11 <link rel="prev" href="intro_dbisnot.html" title="What Berkeley DB is not" />
12 <link rel="next" href="intro_what.html" title="What other services does Berkeley DB provide?" />
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">Do you need Berkeley DB?</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="intro_dbisnot.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 1. 
26 Introduction
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="intro_what.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="intro_need"></a>Do you need Berkeley DB?</h2>
38 </div>
39 </div>
40 </div>
41 <p>Berkeley DB is an ideal database system for applications that need fast,
42 scalable, and reliable embedded database management. For applications
43 that need different services, however, it can be a poor choice.</p>
44 <p>First, do you need the ability to access your data in ways you cannot
45 predict in advance? If your users want to be able to enter SQL
46 queries to perform
47 complicated searches that you cannot program into your application to
48 begin with, then you should consider a relational engine instead. Berkeley DB
49 requires a programmer to write code in order to run a new kind of query.</p>
50 <p>On the other hand, if you can predict your data access patterns up front
51 — and in particular if you need fairly simple key/value lookups — then
52 Berkeley DB is a good choice. The queries can be coded up once, and will then
53 run very quickly because there is no SQL to parse and execute.</p>
54 <p>Second, are there political arguments for or against a standalone
55 relational server? If you're building an application for your own use
56 and have a relational system installed with administrative support
57 already, it may be simpler to use that than to build and learn Berkeley DB.
58 On the other hand, if you'll be shipping many copies of your application
59 to customers, and don't want your customers to have to buy, install,
60 and manage a separate database system, then Berkeley DB may be a better
61 choice.</p>
62 <p>Third, are there any technical advantages to an embedded database? If
63 you're building an application that will run unattended for long periods
64 of time, or for end users who are not sophisticated administrators, then
65 a separate server process may be too big a burden. It will require
66 separate installation and management, and if it creates new ways for
67 the application to fail, or new complexities to master in the field,
68 then Berkeley DB may be a better choice.</p>
69 <p>The fundamental question is, how closely do your requirements match the
70 Berkeley DB design? Berkeley DB was conceived and built to provide fast, reliable,
71 transaction-protected record storage. The library itself was never
72 intended to provide interactive query support, graphical reporting
73 tools, or similar services that some other database systems provide. We
74 have tried always to err on the side of minimalism and simplicity. By
75 keeping the library small and simple, we create fewer opportunities for
76 bugs to creep in, and we guarantee that the database system stays fast,
77 because there is very little code to execute. If your application needs
78 that set of features, then Berkeley DB is almost certainly the best choice
79 for you.</p>
80 </div>
81 <div class="navfooter">
82 <hr />
83 <table width="100%" summary="Navigation footer">
84 <tr>
85 <td width="40%" align="left"><a accesskey="p" href="intro_dbisnot.html">Prev</a> </td>
86 <td width="20%" align="center">
87 <a accesskey="u" href="intro.html">Up</a>
88 </td>
89 <td width="40%" align="right"> <a accesskey="n" href="intro_what.html">Next</a></td>
90 </tr>
91 <tr>
92 <td width="40%" align="left" valign="top">What Berkeley DB is not </td>
93 <td width="20%" align="center">
94 <a accesskey="h" href="index.html">Home</a>
95 </td>
96 <td width="40%" align="right" valign="top"> What other services does Berkeley DB provide?</td>
97 </tr>
98 </table>
99 </div>
100 </body>
101 </html>