Re: ExclusiveLock

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52928
interpreted = N
texte = My understanding is that WebDNA does an implied exclusive lock around each append, replace or delete. The only times I generally use [exclusivelock] are when I'm doing some more complex operation, usually involving multiple databases, and I want to ensure that all necessary databases are available and nobody messes with them while I'm updating. For example: [exclusivelock order.db,oitems.db,member.db] .... code that updates the order, the items and the member, as when they submit an order ... [/exclusivelock] SMSI: Care to comment? - brian On Tuesday, September 16, 2003, at 12:11 PM, Donovan wrote: > WebDna @ wrote: >> Yes well, the fact that you used it lead to the question. :) >> I wanted to know if it is needed. I am one of those who like to have >> as >> little code as possible. > > Ah, :-) I would be interested also. I started using it after seeing > in > Johns DBEdit code (after some commit issues). > > There is probably a greater sience of knowing when to use the different > flush commit close databases and knowing when to use Exclusivelock. > > This also is impacted by your preference settings. If you choose > "Automatically commit databases to disk after modification", you > probably can take out the commitdatabase after your [append] etc. > I have this pref turned on AND I use the manual [commit]. I suppose > that I would consider taking the contexts out if the pages were slow. > > One good thing about using them though is that the code is more > portable... (the next server the code lies on might not have this > pref enabled). > > I would assume Exclusivelock is more for databases that get edited > from multiple locations at near the same time. > > Donovan > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Re: exclusivelock (Govinda 2011)
  2. Re: [WebDNA] Re: exclusivelock (Donovan Brooke 2011)
  3. Re: [WebDNA] Re: exclusivelock (Donovan Brooke 2011)
  4. Re: [WebDNA] Re: exclusivelock (Kenneth Grome 2011)
  5. Re: [WebDNA] Re: exclusivelock (Govinda 2011)
  6. Re: [WebDNA] Re: exclusivelock (Donovan Brooke 2011)
  7. Re: [WebDNA] Re: exclusivelock (Govinda 2011)
  8. Re: [WebDNA] Re: exclusivelock (Kenneth Grome 2011)
  9. Re: [WebDNA] Re: exclusivelock (William DeVaul 2011)
  10. Re: [WebDNA] Re: exclusivelock (Aaron Michael Kaczmarek 2011)
  11. Re: [WebDNA] Re: exclusivelock (Govinda 2011)
  12. [WebDNA] Re: exclusivelock (Kenneth Grome 2011)
  13. [WebDNA] exclusivelock (Kenneth Grome 2011)
  14. Re: ExclusiveLock question ( Donovan Brooke 2005)
  15. ExclusiveLock question ( Justin Carroll 2005)
  16. Re: ExclusiveLock ( "Scott Anderson" 2003)
  17. Re: ExclusiveLock ( Brian Fries 2003)
  18. Re: ExclusiveLock ( Donovan 2003)
  19. Re: ExclusiveLock ( "WebDna @" 2003)
  20. Re: ExclusiveLock ( Donovan 2003)
  21. ExclusiveLock ( "WebDna @" 2003)
  22. Re: ExclusiveLock (Dale LaFountain 2000)
  23. Re: ExclusiveLock (John Butler 2000)
  24. Re: ExclusiveLock (Dale LaFountain 2000)
  25. Re: ExclusiveLock (John Butler 2000)
  26. Re: ExclusiveLock (John Butler 2000)
  27. Re: ExclusiveLock (Kenneth Grome 2000)
  28. Re: ExclusiveLock (Kenneth Grome 2000)
  29. Re: ExclusiveLock (GHulbert@smithmicro.com 2000)
  30. Re: ExclusiveLock (Kenneth Grome 2000)
  31. Re: ExclusiveLock (GHulbert@smithmicro.com 2000)
  32. Re: ExclusiveLock (Kenneth Grome 2000)
  33. Re: ExclusiveLock (GHulbert@smithmicro.com 2000)
  34. Re: ExclusiveLock (Michael Winston 2000)
My understanding is that WebDNA does an implied exclusive lock around each append, replace or delete. The only times I generally use [exclusivelock] are when I'm doing some more complex operation, usually involving multiple databases, and I want to ensure that all necessary databases are available and nobody messes with them while I'm updating. For example: [exclusivelock order.db,oitems.db,member.db] .... code that updates the order, the items and the member, as when they submit an order ... [/exclusivelock] SMSI: Care to comment? - brian On Tuesday, September 16, 2003, at 12:11 PM, Donovan wrote: > WebDna @ wrote: >> Yes well, the fact that you used it lead to the question. :) >> I wanted to know if it is needed. I am one of those who like to have >> as >> little code as possible. > > Ah, :-) I would be interested also. I started using it after seeing > in > Johns DBEdit code (after some commit issues). > > There is probably a greater sience of knowing when to use the different > flush commit close databases and knowing when to use Exclusivelock. > > This also is impacted by your preference settings. If you choose > "Automatically commit databases to disk after modification", you > probably can take out the commitdatabase after your [append] etc. > I have this pref turned on AND I use the manual [commit]. I suppose > that I would consider taking the contexts out if the pages were slow. > > One good thing about using them though is that the code is more > portable... (the next server the code lies on might not have this > pref enabled). > > I would assume Exclusivelock is more for databases that get edited > from multiple locations at near the same time. > > Donovan > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Brian Fries

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Random (2000) WebCat Admin access w/ClearlyHome p.i. (1997) Snake Bites (1997) [format xs] freeze (1997) WebCatalog memory error. (1998) How do you hide [math]stuff[/math] (1997) Not really WebCat (1997) Editing Users.db (1997) WebMerchant 2.1.2 (1998) Database changes (1998) New Command prefs ... (1997) [WebDNA] incomplete redirect tag (2009) Emailer Error Question (1998) [WebDNA] Searching for encrypted values (2014) PHP Live (2005) Webmessage Hyperboard (1998) Processing all html files through WebCat or Typhoon (1998) Frames (1997) POSTing to a secure server ... (2000) Roundup function? (1997)