Berkeley DB in multi-threaded applications

What is the best way to use berkeley DB descriptors (bdb) in a multi-threaded application?

  • Is it better for each thread to open its own descriptor; or,

  • is it better to open one descriptor and make each thread txn_begin {} txn-> commit ()?

Which one is better? I am using the Transactional Data Store with the DB_THREAD flag.

thanks

+7
multithreading transactions berkeley-db
source share
1 answer

Have you read this guide for bdb in a multi-thread environment?

+5
source share

All Articles