Re: ExclusiveLock
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52934
interpreted = N
texte = You are absolutely correct.-----Original Message-----From: Brian Fries [mailto:webdna@brainscansoftware.com]Sent: Tuesday, September 16, 2003 1:02 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: Re: ExclusiveLockMy 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?- brianOn 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 thedifferent> 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 toWeb Archive of this list is at: http://webdna.smithmicro.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:
You are absolutely correct.-----Original Message-----From: Brian Fries [mailto:webdna@brainscansoftware.com]Sent: Tuesday, September 16, 2003 1:02 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: Re: ExclusiveLockMy 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?- brianOn 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 thedifferent> 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 toWeb Archive of this list is at: http://webdna.smithmicro.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/
"Scott Anderson"
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:
Cart Question (1998)
triggering an update of two frames (1998)
[protect admin] (1997)
Menu Madness (2001)
Searching Multiple DBs (1997)
Absolute path (2003)
Running _every_ page through WebCat-error.html (1997)
Bug? (1997)
Displaying photo attached to first record (1997)
[WebDNA] Email Log.txt (2014)
Include a big block of text (1997)
Server capacity (2003)
Re:2nd WebCatalog2 Feature Request (1996)
wrong input values? (1997)
WebCat & Backoffice Solution? (2000)
WebCat2 - Getting to the browser's username/password data (1997)
GuestBook example (1997)
WCS Newbie question (1997)
Bug or syntax error on my part? (1997)
Store Builder, technical infos (1998)