dbTalk Databases Forums  

Berkeley DB page locking issue

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


Discuss Berkeley DB page locking issue in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shanuks@gmail.com
 
Posts: n/a

Default Berkeley DB page locking issue - 02-06-2008 , 09:27 AM






We faced following issue when we are using berkeley DB.
Problem: two cliient applications simultaneously accessing database;
one client is read mode and another is write mode. If we start read
operation in client1, client2 could not update the database is the
updation done in same page. It returns deadlock error in Db->put().

We checked the berkeley DB documentation and we using lock_detect()
for avoiding deadlock. can we disable internal page locking ?

we need to operate both read and write simultaneously in different
applications. There is any method for supporting our requirement ?

Thanks
Shanu

Reply With Quote
  #2  
Old   
ashok
 
Posts: n/a

Default Re: Berkeley DB page locking issue - 03-12-2008 , 01:02 PM






On Feb 6, 10:27*am, shan... (AT) gmail (DOT) com wrote:
Quote:
We faced following issue when we are using berkeley DB.
Problem: two cliient applications simultaneously accessing database;
one client is read mode and another is write mode. If we start read
operation in client1, client2 could not update the database is the
updation done in same page. It returns deadlock error in Db->put().

We checked the berkeley DB documentation and we using lock_detect()
for avoiding deadlock. can we disable internal page locking ?

we need to operate both read and write simultaneously in different
applications. There is any method for supporting our requirement ?

Thanks
Shanu
You can use the MVCC option in version 4.6.


Reply With Quote
  #3  
Old   
ashok
 
Posts: n/a

Default Re: Berkeley DB page locking issue - 03-12-2008 , 01:02 PM



On Feb 6, 10:27*am, shan... (AT) gmail (DOT) com wrote:
Quote:
We faced following issue when we are using berkeley DB.
Problem: two cliient applications simultaneously accessing database;
one client is read mode and another is write mode. If we start read
operation in client1, client2 could not update the database is the
updation done in same page. It returns deadlock error in Db->put().

We checked the berkeley DB documentation and we using lock_detect()
for avoiding deadlock. can we disable internal page locking ?

we need to operate both read and write simultaneously in different
applications. There is any method for supporting our requirement ?

Thanks
Shanu
You can use the MVCC option in version 4.6.


Reply With Quote
  #4  
Old   
ashok
 
Posts: n/a

Default Re: Berkeley DB page locking issue - 03-12-2008 , 01:02 PM



On Feb 6, 10:27*am, shan... (AT) gmail (DOT) com wrote:
Quote:
We faced following issue when we are using berkeley DB.
Problem: two cliient applications simultaneously accessing database;
one client is read mode and another is write mode. If we start read
operation in client1, client2 could not update the database is the
updation done in same page. It returns deadlock error in Db->put().

We checked the berkeley DB documentation and we using lock_detect()
for avoiding deadlock. can we disable internal page locking ?

we need to operate both read and write simultaneously in different
applications. There is any method for supporting our requirement ?

Thanks
Shanu
You can use the MVCC option in version 4.6.


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.