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:

Error Type 3 (1999) Possible Macv2.1b2 Merge Bug (1997) PIXO support (1997) Unexpected error (1997) [Sum] function? (1997) Allow-Deny: Solved with [Getchars] (1998) [search] in formulas.db (1997) Webmerchant/Cybercash (2000) [TaxableTotal] - not working with AOL and IE (1997) Creating 404 Not Found pages (1999) Another question (1997) Webcat Manual and TeaRoom Examples Uses Different Examples. (1997) [listfields] context (2005) Sort Order on a page search (1997) Re:no [search] with NT (1997) Template Cache problem, bombing WebSTAR problem (2000) RE: Template not found error messages (1997) Backwards list behavior ... (1997) getting images' width/height (1998) .html processing? (1998)