diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Freeze/SharedDb.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/Freeze/SharedDb.cpp b/cpp/src/Freeze/SharedDb.cpp index 19e88243a29..7cba35768f6 100644 --- a/cpp/src/Freeze/SharedDb.cpp +++ b/cpp/src/Freeze/SharedDb.cpp @@ -166,6 +166,9 @@ Freeze::SharedDb::SharedDb(const MapKey& key, out << "opening Db \"" << _key.dbName << "\""; } + // set_pagesize(1024); + + try { u_int32_t flags = DB_AUTO_COMMIT | DB_THREAD; @@ -174,6 +177,7 @@ Freeze::SharedDb::SharedDb(const MapKey& key, flags |= DB_CREATE; } open(0, key.dbName.c_str(), 0, DB_BTREE, flags, FREEZE_DB_MODE); + set_cache_priority(DB_PRIORITY_VERY_HIGH); } catch(const ::DbException& dx) { |