Debian Codegraph @

docs/upgrading/upgrade_3_1_btstat.html

raw
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>DB-&gt;stat</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 Upgrade Guide" />
10 <link rel="up" href="upgrade_3_1_toc.html" title="Chapter 13. Upgrading Berkeley DB 3.0 applications to Berkeley DB 3.1" />
11 <link rel="prev" href="upgrade_3_1_dup.html" title="identical duplicate data items" />
12 <link rel="next" href="upgrade_3_1_sysmem.html" title="DB_SYSTEM_MEM" />
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">DB-&gt;stat</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_3_1_dup.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 13. Upgrading Berkeley DB 3.0 applications to Berkeley DB 3.1</th>
26 <td width="20%" align="right"> <a accesskey="n" href="upgrade_3_1_sysmem.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="upgrade_3_1_btstat"></a>DB-&gt;stat</h2>
36 </div>
37 </div>
38 </div>
39 <p>For Btree database statistics, the <a href="../api_reference/C/dbstat.html" class="olink">DB-&gt;stat()</a> method field
40 <span class="bold"><strong>bt_nrecs</strong></span> has been removed, replaced by two fields:
41 <span class="bold"><strong>bt_nkeys</strong></span> and <span class="bold"><strong>bt_ndata</strong></span>. The <span class="bold"><strong>bt_nkeys</strong></span> field returns
42 a count of the unique keys in the database. The <span class="bold"><strong>bt_ndata</strong></span> field
43 returns a count of the key/data pairs in the database. Neither exactly
44 matches the previous value of the <span class="bold"><strong>bt_nrecs</strong></span> field, which returned
45 a count of keys in the database, but, in the case of Btree databases,
46 could overcount as it sometimes counted duplicate data items as unique
47 keys. The application should be searched for any uses of the
48 <span class="bold"><strong>bt_nrecs</strong></span> field and the field should be changed to be either
49 <span class="bold"><strong>bt_nkeys</strong></span> or <span class="bold"><strong>bt_ndata</strong></span>, whichever is more appropriate.</p>
50 <p>For Hash database statistics, the <a href="../api_reference/C/dbstat.html" class="olink">DB-&gt;stat()</a> method field
51 <span class="bold"><strong>hash_nrecs</strong></span> has been removed, replaced by two fields:
52 <span class="bold"><strong>hash_nkeys</strong></span> and <span class="bold"><strong>hash_ndata</strong></span>. The <span class="bold"><strong>hash_nkeys</strong></span> field
53 returns a count of the unique keys in the database. The
54 <span class="bold"><strong>hash_ndata</strong></span> field returns a count of the key/data pairs in the
55 database. The new <span class="bold"><strong>hash_nkeys</strong></span> field exactly matches the previous
56 value of the <span class="bold"><strong>hash_nrecs</strong></span> field. The application should be
57 searched for any uses of the <span class="bold"><strong>hash_nrecs</strong></span> field, and the field
58 should be changed to be <span class="bold"><strong>hash_nkeys</strong></span>.</p>
59 <p>For Queue database statistics, the <a href="../api_reference/C/dbstat.html" class="olink">DB-&gt;stat()</a> method field
60 <span class="bold"><strong>qs_nrecs</strong></span> has been removed, replaced by two fields:
61 <span class="bold"><strong>qs_nkeys</strong></span> and <span class="bold"><strong>qs_ndata</strong></span>. The <span class="bold"><strong>qs_nkeys</strong></span> field returns
62 a count of the unique keys in the database. The <span class="bold"><strong>qs_ndata</strong></span> field
63 returns a count of the key/data pairs in the database. The new
64 <span class="bold"><strong>qs_nkeys</strong></span> field exactly matches the previous value of the
65 <span class="bold"><strong>qs_nrecs</strong></span> field. The application should be searched for any uses
66 of the <span class="bold"><strong>qs_nrecs</strong></span> field, and the field should be changed to be
67 <span class="bold"><strong>qs_nkeys</strong></span>.</p>
68 </div>
69 <div class="navfooter">
70 <hr />
71 <table width="100%" summary="Navigation footer">
72 <tr>
73 <td width="40%" align="left"><a accesskey="p" href="upgrade_3_1_dup.html">Prev</a> </td>
74 <td width="20%" align="center">
75 <a accesskey="u" href="upgrade_3_1_toc.html">Up</a>
76 </td>
77 <td width="40%" align="right"> <a accesskey="n" href="upgrade_3_1_sysmem.html">Next</a></td>
78 </tr>
79 <tr>
80 <td width="40%" align="left" valign="top">identical duplicate data items </td>
81 <td width="20%" align="center">
82 <a accesskey="h" href="index.html">Home</a>
83 </td>
84 <td width="40%" align="right" valign="top"> DB_SYSTEM_MEM</td>
85 </tr>
86 </table>
87 </div>
88 </body>
89 </html>