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:
Bug in the docs ... (2002)
problem: search crashes webstar (1997)
Multiple Merchant Accounts? (1997)
searching within same page (2000)
Safari browser and WebDNA set-cookies (2003)
[WebDNA] Apple nixes Mac OS Server ("websites") and other (2018)
Beta Documentation (1997)
[WebDNA] PayPal IPN (was: paypal FINALLY!!!!) (2009)
followup to ws3 vs ws2.1 speed (1998)
Weird Math and SV (1997)
ODBC and WebCatalog on Solaris and talking to a Sybase database (2001)
lookup command (1997)
Interfacing WebMerchant to www.fedex.com (1997)
WebStar Secure on other machine (1997)
select multiple 2 more cents (1997)
Getting Emailer to send mail (1997)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
two unique banners on one page (1997)
encrypt (2000)
Giving out error pages (1997)