dbTalk Databases Forums  

What can I do to have multi-concurrent writers on different DB in one ENV in single process?

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss What can I do to have multi-concurrent writers on different DB in one ENV in single process? in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David
 
Posts: n/a

Default What can I do to have multi-concurrent writers on different DB in one ENV in single process? - 01-05-2006 , 01:39 AM







Hi,

I am evaluating BDB in a multi-threaded environment.

I need to have multiple DBs to share the same memory pool in one
process. So I create an ENV to share the cache. Each DB has one writer.
All these writers are working concurrently. No read is happening when
writing is going on. These writers either update existing records or
insert new records. I am using cursor to do that.

I am tring to figure out what flag I need to create the ENV. If I use
DB_INIT_CDB, will all these update/insert operations be serialized? I
read the previous thread "Concurrent data store question". However I
was not able to follow the flow.

Any hints would be greatly appreciated.

Regards,

David


Reply With Quote
  #2  
Old   
ragavendrakk@gmail.com
 
Posts: n/a

Default Re: What can I do to have multi-concurrent writers on different DB in one ENV in single process? - 01-05-2006 , 06:53 AM






Hi,
With CDB, within Single DB, readers/writers are sychronised. Across
multiple DB there would be no need to sync as ENV would take care of
the same.

hope have understood the Q correctly.

regards
ragha



David wrote:
Quote:
Hi,

I am evaluating BDB in a multi-threaded environment.

I need to have multiple DBs to share the same memory pool in one
process. So I create an ENV to share the cache. Each DB has one writer.
All these writers are working concurrently. No read is happening when
writing is going on. These writers either update existing records or
insert new records. I am using cursor to do that.

I am tring to figure out what flag I need to create the ENV. If I use
DB_INIT_CDB, will all these update/insert operations be serialized? I
read the previous thread "Concurrent data store question". However I
was not able to follow the flow.

Any hints would be greatly appreciated.

Regards,

David


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.