Re: unique ascending numbers
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50219
interpreted = N
texte = I should know this, but I'm curious, what happens to concurrent users whenthey attempt to append to a database that has an [exclusivelock] on it?Will their appends be made after the [/exclusivelock] is encountered or dothey get database is busy error message? What are the chances that theirappend info is lost because of any delays caused by the [exclusivelock]?GKOn 9.5.2003 23:16 Uhr, Joe D'Andrea
wrote:>> Do you have 5.x? If so then use &autonumber=field and you are done, noextra>> processing!>> You don't know that. You can say that it's easier to code for use> mere mortals, but do we know that the processing behind> &autonumber=field is less CPU intensive then a search to find the> maximum value in a field and then adding one to it?Joe,Scott explained it to me that with the autonumber it is more efficient.We have run into problem were only 5 people tried to add a new record. Thetemplate was giving each a new ID. Well, it happened that some of them gotthe same ID.So we have to wrap [exclusivelock] around the search to find the next highervalue and then do a append. I think &autonumber=ID is better:-)Sincerely,Nitai AventaggiatoCEO-------------------------------------------------------------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:
I should know this, but I'm curious, what happens to concurrent users whenthey attempt to append to a database that has an [exclusivelock] on it?Will their appends be made after the [/exclusivelock] is encountered or dothey get database is busy error message? What are the chances that theirappend info is lost because of any delays caused by the [exclusivelock]?GKOn 9.5.2003 23:16 Uhr, Joe D'Andrea wrote:>> Do you have 5.x? If so then use &autonumber=field and you are done, noextra>> processing!>> You don't know that. You can say that it's easier to code for use> mere mortals, but do we know that the processing behind> &autonumber=field is less CPU intensive then a search to find the> maximum value in a field and then adding one to it?Joe,Scott explained it to me that with the autonumber it is more efficient.We have run into problem were only 5 people tried to add a new record. Thetemplate was giving each a new ID. Well, it happened that some of them gotthe same ID.So we have to wrap [exclusivelock] around the search to find the next highervalue and then do a append. I think &autonumber=ID is better:-)Sincerely,Nitai AventaggiatoCEO-------------------------------------------------------------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/
Gary Krockover
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:
best way to test for the existence of a parameter in a url (2003)
Is someone's computer clock set wrong? (2000)
[WebDNA] RESTART WebDNA (2016)
[WebDNA] Has anyone used 'bootstrap' as their base to create a (2016)
changing order number (1998)
Help with database strategy (1998)
Too Much Rootbeer Free Offer (1997)
Re:Hideif / Showif (1998)
More on the email templates (1997)
Boolean showifs? (2000)
Emailer (1997)
Simple form with picture upload (2005)
won't serve .tpl (2000)
Lookup command (1998)
Not really WebCat (1997)
RE: E-mail formating queston (1999)
bug in [SendMail] (1997)
WebCat2: Formulas.db question (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
SiteGuard Admin Feature ? (1997)