Re: make updates in a temporary database
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57645
interpreted = N
texte = You could make a temporary db and then merge the two databases.This is the code from the default.tpl Merge Databases example from JohnHill.[!]SELECT MASTER DATABASE PAGE[/!][showif [page]=[raw][page][/raw]]
[/showif][!]SELECT SECOND DATABASE PAGE[/!][showif [page]=second]
[/showif][!]Map fields between the two[/!][showif [page]=show]
[/showif][!]Do the merge[/!][showif [page]=merge][search db=[url][second][/url]&ne[a_field]datarq=find_all][numfound] records added to [master] from [second].[founditems][append db=[url][master][/url]][listfieldsdb=[url][master][/url]][text]the_field=[interpret][__[fieldname]][/interpret][/text][hideif[url][the_field][/url]=][fieldname]=[url][interpret][[the_field]][/interpret][/url]&[/hideif][/listfields][/append][/founditems][/search][commitdatabase db=[url][master][/url]][/showif]-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf OfLesterSent: Tuesday, May 04, 2004 4:43 PMTo: WebDNA TalkSubject: make updates in a temporary databaseI have a site where making to the changes during"peak" periods causes my admin functions to basicallygo s-l-o-w or the admin pages freeze up it seems.Only during these peak user periods.It's not practicle to make changes during off-peakperiods, so that can't be the solution.I'm thinking that when I'm making changes to thedatabase, and people are accessing this same databaseduring this period, that's when my issue appears.It's not a large database, maybe 2 megs or so.I was thinking working on an exact duplicate of the"live" database and then when changes are done"swapping" the worker version with the "live version.Anyone doing something like this??How did you approach it all codewise?I'm still using vers 4.5Thanks__________________________________Do you Yahoo!?Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover -------------------------------------------------------------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/__________ NOD32 1.749 (20040503) Information __________This message was checked by NOD32 Antivirus System.http://www.nod32.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 could make a temporary db and then merge the two databases.This is the code from the default.tpl Merge Databases example from JohnHill.[!]SELECT MASTER DATABASE PAGE[/!][showif [page]=[raw][page][/raw]][/showif][!]SELECT SECOND DATABASE PAGE[/!][showif [page]=second][/showif][!]Map fields between the two[/!][showif [page]=show][/showif][!]Do the merge[/!][showif [page]=merge][search db=[url][second][/url]&ne[a_field]datarq=find_all][numfound] records added to [master] from [second].[founditems][append db=[url][master][/url]][listfieldsdb=[url][master][/url]][text]the_field=[interpret][__[fieldname]][/interpret][/text][hideif[url][the_field][/url]=][fieldname]=[url][interpret][[the_field]][/interpret][/url]&[/hideif][/listfields][/append][/founditems][/search][commitdatabase db=[url][master][/url]][/showif]-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf OfLesterSent: Tuesday, May 04, 2004 4:43 PMTo: WebDNA TalkSubject: make updates in a temporary databaseI have a site where making to the changes during"peak" periods causes my admin functions to basicallygo s-l-o-w or the admin pages freeze up it seems.Only during these peak user periods.It's not practicle to make changes during off-peakperiods, so that can't be the solution.I'm thinking that when I'm making changes to thedatabase, and people are accessing this same databaseduring this period, that's when my issue appears.It's not a large database, maybe 2 megs or so.I was thinking working on an exact duplicate of the"live" database and then when changes are done"swapping" the worker version with the "live version.Anyone doing something like this??How did you approach it all codewise?I'm still using vers 4.5Thanks__________________________________Do you Yahoo!?Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover -------------------------------------------------------------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/__________ NOD32 1.749 (20040503) Information __________This message was checked by NOD32 Antivirus System.http://www.nod32.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/
"Sal"
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:
No. of items in shopping cart (2000)
formatting a number (1999)
deerfield/wingate server (2004)
Looking to hire a WebDeveloper in Frankfurt Germany (2000)
WebDNA 5.0 Questions (2003)
Webcat 4.5.1 equivalent of autonumber (2003)
WebMerchant and PCAuthorize (1998)
database size? (1997)
problems with 2 tags (1997)
OT: Need some feedback, please. (2003)
WebCat2 beta 11 - new prefs ... (1997)
Where is f2? (1997)
WebCat2b12--[searchstring] bug (1997)
[founditems][replacefounditems] (2003)
X etc.... (1999)
Weird Linux WebCat Issue (2003)
Your Pay XML / LinkPoint (2005)
ADD a product without Database (1998)
Cant get my own subtotal (2001)
Banners (1997)