1<!--$Id: stat.so,v 10.22 2007/12/07 21:35:23 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Database statistics</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<a name="2"><!--meow--></a> 12<table width="100%"><tr valign=top> 13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Access Methods</dl></b></td> 14<td align=right><a href="/am/delete.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/am/truncate.html"><img src="/images/next.gif" alt="Next"></a> 15</td></tr></table> 16<p align=center><b>Database statistics</b></p> 17<p>The <a href="/api_c/db_stat.html">DB->stat</a> method returns a set of statistics about the underlying 18database, for example, the number of key/data pairs in the database, how 19the database was originally configured, and so on.</p> 20<p>There is a flag you can set to avoid time-consuming operations:</p> 21<br> 22<b><a href="/api_c/db_stat.html#DB_FAST_STAT">DB_FAST_STAT</a></b><ul compact><li>Return only information that can be acquired without traversing the 23entire database.</ul> 24<br> 25<table width="100%"><tr><td><br></td><td align=right><a href="/am/delete.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/am/truncate.html"><img src="/images/next.gif" alt="Next"></a> 26</td></tr></table> 27<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 28</body> 29</html> 30