* When using BDB_IDL_MULTI, the IDL size is no longer an issue. Smaller
* pages are better for concurrency.
*/
+#ifndef BDB_ID2ENTRY_PAGESIZE
+#define BDB_ID2ENTRY_PAGESIZE 16384
+#endif
+
#ifndef BDB_PAGESIZE
#ifdef BDB_IDL_MULTI
#define BDB_PAGESIZE 4096 /* BDB's original default */
if( i == BDB_ID2ENTRY ) {
rc = db->bdi_db->set_bt_compare( db->bdi_db,
bdb_bt_compare );
+ rc = db->bdi_db->set_pagesize( db->bdi_db,
+ BDB_ID2ENTRY_PAGESIZE );
+ } else {
+ rc = db->bdi_db->set_pagesize( db->bdi_db,
+ BDB_PAGESIZE );
}
#ifdef BDB_IDL_MULTI
if( i == BDB_DN2ID ) {
bdb_bt_compare );
}
#endif
- rc = db->bdi_db->set_pagesize( db->bdi_db, BDB_PAGESIZE );
-
rc = db->bdi_db->open( db->bdi_db,
bdbi_databases[i].file,
/* bdbi_databases[i].name, */ NULL,