Re: Database changes

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16151
interpreted = N
texte = >>Whenever I make a change to a database, then use fetch to reload the >>database file to the server, the changes are never appearant on the web >>site. I have tried the [closedatabase] tag in a web page, and the >>$flushdatabases command in a URL string, but cannot affectuate the >>changes I made to the database file. > >Hmm. That is the correct procedure -- upload the new database, then issue a FlushDatabases command (or embedded [flushdatabases]) should force it to unload everything and reload from disk the next time a db is needed.Wait a minute, Grant, I hate to disagree with you, but I do *not* agree with you upload procedure here. Maybe I am misunderstanding what you're trying to explain, so please correct me if I'm wrong, but this is my understanding ...Flushdatabases does not simply purge the RAM-cached data, it actually writes all the open databases to disk *before* purging WebCat's RAM database caches. So if you upload a new db file *before* issuing the [flushdatabase] command (which is wha you're suggesting) the new db will be overwritten by the older RAM-cached version.In other words, there is still no way to get the data out of WebCat's RAM cache without having it written to disk, thus overwriting the newly uploaded file. That's been a problem with WebCat all along for people who need to replace existing databases with new ones.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.Sincerely, Ken Grome ken@iav.com 808-737-6499 WebDNA Solutions http://webdna.net/ 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)
>>Whenever I make a change to a database, then use fetch to reload the >>database file to the server, the changes are never appearant on the web >>site. I have tried the [closedatabase] tag in a web page, and the >>$flushdatabases command in a URL string, but cannot affectuate the >>changes I made to the database file. > >Hmm. That is the correct procedure -- upload the new database, then issue a FlushDatabases command (or embedded [flushdatabases]) should force it to unload everything and reload from disk the next time a db is needed.Wait a minute, Grant, I hate to disagree with you, but I do *not* agree with you upload procedure here. Maybe I am misunderstanding what you're trying to explain, so please correct me if I'm wrong, but this is my understanding ...Flushdatabases does not simply purge the RAM-cached data, it actually writes all the open databases to disk *before* purging WebCat's RAM database caches. So if you upload a new db file *before* issuing the [flushdatabase] command (which is wha you're suggesting) the new db will be overwritten by the older RAM-cached version.In other words, there is still no way to get the data out of WebCat's RAM cache without having it written to disk, thus overwriting the newly uploaded file. That's been a problem with WebCat all along for people who need to replace existing databases with new ones.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.Sincerely, Ken Grome ken@iav.com 808-737-6499 WebDNA Solutions http://webdna.net/ Kenneth Grome

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:

PIXO Support (1997) Shopping carts and reloading pages (1997) How To question on setting up downloads (1997) newcart (1997) 4.0 upgrade pricing (2000) About WebCatalog and iTools 7 (2003) 'RequiredField' Question (1998) New to WebCat, Help. (1998) Re2: AAgghh!! Help, please. SSL strikes again. (1997) Which beta for w* 4.1 and a problem w/b12 (1999) Help needed! (SIMS recommendation) (1998) 2.1 Stuff (1998) WC Host Needed (2000) AND/OR searches in WebCat 3.07 (2003) Frames and WebCat (1997) can webcat trigger executable files? (2000) Document Contains No Data! (1997) Adding Header Values with [SetHeader] (1998) Micro-managing External Links (2006) Search in 2 or more catalogs (1997)