开发者

Berkeley DB in multithreaded applications

开发者 https://www.devze.com 2022-12-13 12:05 出处:网络
What is the best way to use berkeley DB (bdb) handles in a multi-threaded app开发者_如何学Golication?

What is the best way to use berkeley DB (bdb) handles in a multi-threaded app开发者_如何学Golication?

  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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号