dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Berkeley DB page locking issue - berkeley-db

This is a discussion on Berkeley DB page locking issue - berkeley-db ; 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 ...


Home > Database Forum > Other Databases > berkeley-db > Berkeley DB page locking issue

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 02-06-2008, 10:27 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Berkeley DB page locking issue

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 03-12-2008, 02:02 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Berkeley DB page locking issue

On Feb 6, 10:27*am, shan...@gmail.com wrote:
> 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



All times are GMT -4. The time now is 07:59 PM.