diff options
Diffstat (limited to 'docs/api_reference/C/dbset_partition.html')
| -rw-r--r-- | docs/api_reference/C/dbset_partition.html | 51 |
1 files changed, 29 insertions, 22 deletions
diff --git a/docs/api_reference/C/dbset_partition.html b/docs/api_reference/C/dbset_partition.html index e3896709..0e00a761 100644 --- a/docs/api_reference/C/dbset_partition.html +++ b/docs/api_reference/C/dbset_partition.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -44,22 +44,27 @@ int DB->set_partition(DB * db, u_int32_t parts, DBT *keys, u_int32_t (*db_partition_fcn) (DB *db, DBT *key)); </pre> <p> - Set up partitioning for a database. Partitioning may be used on either BTREE or HASH databases. - Partitions may be specified by either a set of keys specifying a range of values in each partition - or with a callback function that returns the number of the partition to put a specific key. - Partition range keys may only be specified for BTREE databases. + Set up partitioning for a database. Partitioning may be used on + either BTREE or HASH databases. Partitions may be specified by + either a set of keys specifying a range of values in each + partition, or with a callback function that returns the number of + the partition to put a specific key. Partition range keys may only + be specified for BTREE databases. </p> <p> - Partitions are implimented as separate database files and can help reduce contention within a logical - database. Contention can come from multiple threads of control accessing database pages simultaniously. - Typically these pages are the root of a btree and the metadata page which contains allocation information - in both BTREE and HASH databases. Each partition has its own metadata and root pages. + Partitions are implemented as separate database files and can help + reduce contention within a logical database. Contention can come + from multiple threads of control accessing database pages + simultaneously. Typically these pages are the root of a btree and + the metadata page which contains allocation information in both + BTREE and HASH databases. Each partition has its own metadata and + root pages. </p> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58470008"></a>Parameters</h3> + <h3 class="title"><a id="idm5608160"></a>Parameters</h3> </div> </div> </div> @@ -72,20 +77,21 @@ DB->set_partition(DB * db, u_int32_t parts, DBT *keys, <div class="titlepage"> <div> <div> - <h4 class="title"><a id="idp58489904"></a>parts</h4> + <h4 class="title"><a id="idp123880"></a>parts</h4> </div> </div> </div> <p> - The <span class="bold"><strong>parts</strong></span> parameter is the number of partitions to create. - The value must be 2 or greater. + The <span class="bold"><strong>parts</strong></span> parameter is the + number of partitions to create. The value must be greater than + or equal to 2, and smaller than 1000000. </p> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> - <h4 class="title"><a id="idp58458096"></a>keys</h4> + <h4 class="title"><a id="idm7025400"></a>keys</h4> </div> </div> </div> @@ -105,7 +111,7 @@ DB->set_partition(DB * db, u_int32_t parts, DBT *keys, <div class="titlepage"> <div> <div> - <h4 class="title"><a id="idp58480440"></a>db_partition_fcn</h4> + <h4 class="title"><a id="idm6976280"></a>db_partition_fcn</h4> </div> </div> </div> @@ -124,7 +130,8 @@ DB->set_partition(DB * db, u_int32_t parts, DBT *keys, <code class="literal">db</code> </p> <p> - The <span class="bold"><strong>db</strong></span> parameter is the database handle. + The <span class="bold"><strong>db</strong></span> parameter + is the database handle. </p> </li> <li> @@ -145,25 +152,25 @@ DB->set_partition(DB * db, u_int32_t parts, DBT *keys, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58494264"></a>Class</h3> + <h3 class="title"><a id="idm6073784"></a>Class</h3> </div> </div> </div> <p> - <a class="link" href="db.html" title="Chapter 2. The DB Handle">DB</a> - </p> + <a class="link" href="db.html" title="Chapter 2. The DB Handle">DB</a> + </p> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58488664"></a>See Also</h3> + <h3 class="title"><a id="idp122856"></a>See Also</h3> </div> </div> </div> <p> - <a class="xref" href="db.html#dblist" title="Database and Related Methods">Database and Related Methods</a> - </p> + <a class="xref" href="db.html#dblist" title="Database and Related Methods">Database and Related Methods</a> + </p> </div> </div> <div class="navfooter"> |
