dbTalk Databases Forums  

DB->compact in presense of concurrent transactions

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


Discuss DB->compact in presense of concurrent transactions in the comp.databases.berkeley-db forum.



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

Default DB->compact in presense of concurrent transactions - 01-24-2006 , 01:17 PM






Hello,

I have a question on how DB->compact() method in BDB 4.4 behaves if I
have concurrent transactions. When I call the method with DB_FREE_SPACE
flag it may take a while to rearrange(copy) pages and truncate the
file.
What happens if other threads try to run transactions on the same file?
Does compact block the whole file or it blocks only a few pages at a
time?


Anatoliy


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.