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 John Hill. [!]SELECT MASTER DATABASE PAGE[/!] [showif [page]=[raw][page][/raw]]
Select the master database (records will merge into this database):

[/showif] [!]SELECT SECOND DATABASE PAGE[/!] [showif [page]=second]
Select the secondary database (records will be copied from this database):

[/showif] [!]Map fields between the two[/!] [showif [page]=show]
[listfields db=[master]] [fieldname] <--
[/listfields]
[/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]][listfields db=[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 Of Lester Sent: Tuesday, May 04, 2004 4:43 PM To: WebDNA Talk Subject: make updates in a temporary database I have a site where making to the changes during "peak" periods causes my admin functions to basically go 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-peak periods, so that can't be the solution. I'm thinking that when I'm making changes to the database, and people are accessing this same database during 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.5 Thanks   __________________________________ 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 to Web 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:

    
  1. Re: make updates in a temporary database ( Brian B. Burton 2004)
  2. Re: make updates in a temporary database ( Lester 2004)
  3. Re: make updates in a temporary database ( Lester 2004)
  4. Re: make updates in a temporary database ( Tim Robinson 2004)
  5. Re: make updates in a temporary database ( "Sal" 2004)
  6. Re: make updates in a temporary database ( charles kline 2004)
  7. Re: make updates in a temporary database ( "Gary Krockover" 2004)
  8. make updates in a temporary database ( Lester 2004)
You could make a temporary db and then merge the two databases. This is the code from the default.tpl Merge Databases example from John Hill. [!]SELECT MASTER DATABASE PAGE[/!] [showif [page]=[raw][page][/raw]]
Select the master database (records will merge into this database):

[/showif] [!]SELECT SECOND DATABASE PAGE[/!] [showif [page]=second]
Select the secondary database (records will be copied from this database):

[/showif] [!]Map fields between the two[/!] [showif [page]=show]
[listfields db=[master]] [fieldname] <--
[/listfields]
[/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]][listfields db=[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 Of Lester Sent: Tuesday, May 04, 2004 4:43 PM To: WebDNA Talk Subject: make updates in a temporary database I have a site where making to the changes during "peak" periods causes my admin functions to basically go 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-peak periods, so that can't be the solution. I'm thinking that when I'm making changes to the database, and people are accessing this same database during 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.5 Thanks   __________________________________ 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 to Web 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)