Menu
  • HOME
  • TAGS

Berkeley-DB: Atomic transactions over multiple databases

c++,database,berkeley-db

If you are using multiple databases then you DON'T have to create multiple transactions. By using a single transaction, you can operate on multiple DBs. Please see this link for the documentation of Db::Open(). It has the 'DbTxn *txnid' parameter. You can specify a transaction id returned by the DB_ENV->txn_begin()...

IOS Berkeley DB development issue

ios,berkeley-db

Above problem resolved using following steps. 1) Build architecture for i386 architecture. 2) make realclean 3) Build architecture for armv7, architecture. 4) Got two lib_cxx-6.1.dylib for i386 and armv7. 5) Using lipo create command generated universal build. 6) imported in to xcode framework. Thanks....

Delete a key-value pair in BerkeleyDB

dictionary,key-value,berkeley-db

If you're using a RECNO database, you're probably out of luck. But, if you can use a BTREE, you have a couple of options. First, and probably easiest is to iterate over only the portion of the database that makes sense. Assuming you're using the default key comparison function, you...

How to specify version of BerkeleyDB when creating file using perl DB_File?

php,perl,berkeley-db

No, there is no way to tell perl's DB_File to create a specific version , AFAIK libdb itself doesn't have that feature If you compile/link against version 4.x of libdb, then DB_File only gets to use that version So if you need DB_File that uses libdb-4.x you will have to...

Class could not be loaded or is not persistent: scala.collection.immutable.List in Berkeley DB JE

java,scala,berkeley-db,berkeley-db-je

I found the answer by myself. Berkeley DB JE does not support List of scala, and it only supports java.util.List. So using following statement to change the scala List to java List works. import scala.collection.JavaConverters._ val sl = List(...) val jl = new java.util.ArrayList(sl.asJava) Passing jl to Berkeley DB JE...

Berkeley DB: DbEnv::lsn_reset takes a very long time

c++,database,berkeley-db

DbEnv::lsn_reset() is probably not what you want. That function rewrites every single page in the database, so that you can close the databases out and open them in a different environment. It's going to write out at least 2.1 GiB, and pretty slowly. If you're just shutting the application down...