Berkeley DB in multithreaded applications
Asked Answered
C

0

8

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

  1. Is it better to have each thread open its own handle; or,

  2. is it better to open a single handle and have each thread do txn_begin { } txn->commit()?

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

Thanks

Chemosh answered 5/12, 2009 at 1:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.