What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: Database changes

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16154
interpreted = N
texte = >The correct procedure when uploading a new replacement db file to the >server is to perform the $flushdatabases command first, THEN upload the >file. > >But this only works when no one happens to request a page that calls that >database in the meantime, because if that happens, WebCat will reload the >old db back into RAM before you're finished replacing the old db with the >new one... and then, once that old db is in RAM again, there's no way to >purge that RAM data without rewriting it to disk. > >So on a busy server, this generally means having to suspend new >connections or quitting the server in order to make absolutely sure that >your newly-uploaded db does not get overwritten by WebCat.We use two different techniques for updating .dbs, depending on the size of the db.1. Upload a new copy of the .db with a different name, like new.db. Search the old.db for all records and delete them. Then search the new.db for all records and append them to the old.db. Close the new.db. Replace new.db with a new new.db next time you have to update.2. Upload a new copy of the .db called something different. Close the old.db and delete it (either by [APPLESCRIPT] or with WebCat 2.1's [DeleteFile] tag. Rename the new.db to old.db with [APPLESCRIPT] or [CopyFile] new.db to old.db with WebCat 2.1 and [DeleteFile] new.db.On a really busy server or with really big db.s you might to embed an [APPLESCRIPT] in the beginning of the template that tells Web* to refuse connections and one [APPLESCRIPT] in the end telling Web* to accept connections again. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Wishlist: ignore whitespace in database changes (Stuart Tremain 2016)
  2. Re: [WebDNA] Wishlist: ignore whitespace in database changes (Patrick McCormick 2016)
  3. Was: [WebDNA] Wishlist: ignore whitespace in database changes - Now: WebDNA Data Model (dbrooke@euca.us 2016)
  4. [BULK] Re: [WebDNA] Wishlist: ignore whitespace in database changes (Alex McCombie 2016)
  5. Was: [WebDNA] Wishlist: ignore whitespace in database changes - Now: WebDNA Data Model (dbrooke@euca.us 2016)
  6. Re: [WebDNA] Wishlist: ignore whitespace in database changes (christophe.billiottet@webdna.us 2016)
  7. Re: [WebDNA] Wishlist: ignore whitespace in database changes (Stuart Tremain 2016)
  8. Re: [WebDNA] Wishlist: ignore whitespace in database changes (Brian Burton 2016)
  9. Re: [WebDNA] Wishlist: ignore whitespace in database changes (Kenneth Grome 2016)
  10. Re: [WebDNA] Wishlist: ignore whitespace in database changes (christophe.billiottet@webdna.us 2016)
  11. Re: [WebDNA] Wishlist: ignore whitespace in database changes (Brian Burton 2016)
  12. Re: [WebDNA] Wishlist: ignore whitespace in database changes (dbrooke@euca.us 2016)
  13. [WebDNA] Wishlist: ignore whitespace in database changes (Brian Burton 2016)
  14. Re: Database Changes (WebDNA Support 2000)
  15. Re: Database Changes (Kenneth Grome 2000)
  16. Database Changes (Glenn Busbin 2000)
  17. Re: Database changes (Kenneth Grome 1998)
  18. Re: Database changes (Jeffrey L. Jones 1998)
  19. Re: Database changes (Grant Hulbert 1998)
  20. Re: Database changes (Kenneth Grome 1998)
  21. Re: Database changes (Kenneth Grome 1998)
  22. Re: Database changes (Grant Hulbert 1998)
  23. Re: Database changes (RH Prouty 1998)
  24. Re: Database changes (Christer Olsson 1998)
  25. Re: Database changes (Kenneth Grome 1998)
  26. Re: Database changes (Grant Hulbert 1998)
  27. Database changes (Dennis J. Bonsall, Jr. 1998)
>The correct procedure when uploading a new replacement db file to the >server is to perform the $flushdatabases command first, THEN upload the >file. > >But this only works when no one happens to request a page that calls that >database in the meantime, because if that happens, WebCat will reload the >old db back into RAM before you're finished replacing the old db with the >new one... and then, once that old db is in RAM again, there's no way to >purge that RAM data without rewriting it to disk. > >So on a busy server, this generally means having to suspend new >connections or quitting the server in order to make absolutely sure that >your newly-uploaded db does not get overwritten by WebCat.We use two different techniques for updating .dbs, depending on the size of the db.1. Upload a new copy of the .db with a different name, like new.db. Search the old.db for all records and delete them. Then search the new.db for all records and append them to the old.db. Close the new.db. Replace new.db with a new new.db next time you have to update.2. Upload a new copy of the .db called something different. Close the old.db and delete it (either by [APPLESCRIPT] or with WebCat 2.1's [deletefile] tag. Rename the new.db to old.db with [APPLESCRIPT] or [copyfile] new.db to old.db with WebCat 2.1 and [deletefile] new.db.On a really busy server or with really big db.s you might to embed an [APPLESCRIPT] in the beginning of the template that tells Web* to refuse connections and one [APPLESCRIPT] in the end telling Web* to accept connections again. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Christer Olsson

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:

Almost a there but..bye bye NetCloak (1997) Download Question (1997) [WriteFile] problems (1997) (1997) WebCatalog Use Question (1997) PCS Frames (1997) OH CRAP!!!!!- Template not found error!!! (1999) French characters in variables (2001) Nested tags count question (1997) math on date? (1997) How is it done? (1998) [delete] problem (1997) WebCat2b15MacPlugin - showing [math] (1997) REDIRECT MULTIPLE RESULTS (2000) more re newbie ? re ssl/non-ssl (1999) [protect] on NT? (1997) Error: Can't open order file. (2005) sendmail spaces (1997) [WebDNA] Triggers not working (2011) OK, here goes... (1997)