Re: Closing Databases
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16597
interpreted = N
texte = >>You only need to worry if the database in WebCatalog has been modified -- >>using something like [Append] [Replace] [Delete], etc. If the database is>>'read-only', then simply uploading a new file and then doing a >>[CloseDatabase] or [FlushDatabases] will re-read the new file.>>Sorry, I still do not understand why I would have to close of flush the >database afterwards. Closing/Flusing a database writes what's in memory >back to disk. If I first upload a new file and then close or flash the >database, to my understanding the file in memory is overwriting the new >file with old data?! What's wrong with my way of thinking.>>JohnThis is a problem that has been plagueing PCS since I first joined thislist, and could be fixed in one easy step, that for some reason, PCS doesn'tsee or won't implement. The problem is based on the confusion of the termclosedatabase. The way PCS has the closedatabase tag define, it is dualpurpose (which is a good thing from a minimalist point of view), to bothwrite changed databases and to flush unchanged databases (no need to writeto disk.) But the users don't get it! (and most users don't want it this way!) Why nothave two tags, [closedatabase] which saves any database to disk again, and[reloaddatabase] which throws away the ram copy (changes or not) and reloadsthe database of the same name. Or perhaps [closedatabase commit=T] or[closedatabase commit=F]. Personally, I'd like a reload tag so I couldupload a new database, issue the command, and know that the ram file isflused, and the new database is opened, with practically no downtime. I'll now await PCS's reply about why they don't want to do this. (it willhave nothing to do with it not being possible...) Brian B. Burton BOFH--------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.com
Associated Messages, from the most recent to the oldest:
>>You only need to worry if the database in WebCatalog has been modified -- >>using something like
[append] [replace] [delete], etc. If the database is>>'read-only', then simply uploading a new file and then doing a >>
[closedatabase] or
[flushdatabases] will re-read the new file.>>Sorry, I still do not understand why I would have to close of flush the >database afterwards. Closing/Flusing a database writes what's in memory >back to disk. If I first upload a new file and then close or flash the >database, to my understanding the file in memory is overwriting the new >file with old data?! What's wrong with my way of thinking.>>JohnThis is a problem that has been plagueing PCS since I first joined thislist, and could be fixed in one easy step, that for some reason, PCS doesn'tsee or won't implement. The problem is based on the confusion of the termclosedatabase. The way PCS has the closedatabase tag define, it is dualpurpose (which is a good thing from a minimalist point of view), to bothwrite changed databases and to flush unchanged databases (no need to writeto disk.) But the users don't get it! (and most users don't want it this way!) Why nothave two tags,
[closedatabase] which saves any database to disk again, and[reloaddatabase] which throws away the ram copy (changes or not) and reloadsthe database of the same name. Or perhaps [closedatabase commit=T] or[closedatabase commit=F]. Personally, I'd like a reload tag so I couldupload a new database, issue the command, and know that the ram file isflused, and the new database is opened, with practically no downtime. I'll now await PCS's reply about why they don't want to do this. (it willhave nothing to do with it not being possible...) Brian B. Burton BOFH--------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.com
Brian B. Burton
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:
Webstar 1.3.1 PPC (1997)
Security (1998)
[OT][OT] OSX email client (2002)
Pipes instead of tabs (1998)
chat opinion ... (2002)
Follow-up to listfiles bug report ... (2003)
Umm...about those log files? (Off Topic) (1997)
List Archives (2000)
2.0 Beta (1997)
Tables (2005)
pop up menu's (1998)
Re:Searchable Archives (1998)
BGcolor (1997)
PCS Frames (1997)
WC2f3 (1997)
WebMerchant 1.6 and SHTML (1997)
RE: New WebCatalog Version !!! (1997)
is there a [purchase]? (1998)
Email (1998)
[WebDNA] WebDNA programmers for hire? (2010)