Re: Closing Databases
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16600
interpreted = N
texte = New to 2.1 to hopefullly address this istaken from the online ref....[COMMITDATABASE FileName] Putting [COMMITDATABASE FileName] in your template will cause thespecified database file (or full path) to be written but not closed (so itwill remain in RAM). This is only needed for special cases where you wantto be absolutely certain that a database has been written to disk.CloseDatabase continues to both committ and release the ram that thedatabase is taking up...We are always open to constructive criticism about new tags etc... Keep thecomments coming, but we hope that the above is at least helpful...>>>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.>>>>John>>This is a problem that has been plagueing PCS since I first joined this>list, and could be fixed in one easy step, that for some reason, PCS doesn't>see or won't implement. The problem is based on the confusion of the term>closedatabase. The way PCS has the closedatabase tag define, it is dual>purpose (which is a good thing from a minimalist point of view), to both>write changed databases and to flush unchanged databases (no need to write>to disk.)>>But the users don't get it! (and most users don't want it this way!) Why not>have two tags, [closedatabase] which saves any database to disk again, and>[reloaddatabase] which throws away the ram copy (changes or not) and reloads>the database of the same name. Or perhaps [closedatabase commit=T] or>[closedatabase commit=F]. Personally, I'd like a reload tag so I could>upload a new database, issue the command, and know that the ram file is>flused, 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 will>have 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.comJay Van Vark *******************************Pacific Coast Software | eCommerce (WebCatalog)11770 Bernardo Plaza Court | Site Hosting & DevelopmentSuite 453 | http://www.smithmicro.comSan Diego, CA 92128 *******************************619.675.1106** PGP key available upon request. **
Associated Messages, from the most recent to the oldest:
New to 2.1 to hopefullly address this istaken from the online ref....[COMMITDATABASE FileName] Putting [COMMITDATABASE FileName] in your template will cause thespecified database file (or full path) to be written but not closed (so itwill remain in RAM). This is only needed for special cases where you wantto be absolutely certain that a database has been written to disk.CloseDatabase continues to both committ and release the ram that thedatabase is taking up...We are always open to constructive criticism about new tags etc... Keep thecomments coming, but we hope that the above is at least helpful...>>>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.>>>>John>>This is a problem that has been plagueing PCS since I first joined this>list, and could be fixed in one easy step, that for some reason, PCS doesn't>see or won't implement. The problem is based on the confusion of the term>closedatabase. The way PCS has the closedatabase tag define, it is dual>purpose (which is a good thing from a minimalist point of view), to both>write changed databases and to flush unchanged databases (no need to write>to disk.)>>But the users don't get it! (and most users don't want it this way!) Why not>have two tags,
[closedatabase] which saves any database to disk again, and>[reloaddatabase] which throws away the ram copy (changes or not) and reloads>the database of the same name. Or perhaps [closedatabase commit=T] or>[closedatabase commit=F]. Personally, I'd like a reload tag so I could>upload a new database, issue the command, and know that the ram file is>flused, 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 will>have 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.comJay Van Vark *******************************Pacific Coast Software | eCommerce (WebCatalog)11770 Bernardo Plaza Court | Site Hosting & DevelopmentSuite 453 | http://www.smithmicro.comSan Diego, CA 92128 *******************************619.675.1106** PGP key available upon request. **
Jay Van Vark
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:
Not really WebCat (1997)
Setting up WebCatalog with Retail Pro data (1996)
BUG REPORT -- Refusing connections! (1999)
Server IP Address (2003)
emailer (1997)
TPC Connect (1999)
Credit Card Number checking (1997)
JS version of this (2007)
Resume Catalog ? (1997)
Protecting Realms (1998)
URGENT: WebDNA Server Not Running (2003)
[url] link (1998)
RE: Problems with shopping cart (1997)
WebDNA (WebCatalog) working with iTools 7.3 (2004)
unable to launch acgi in WebCat (1997)
Nested tags count question (1997)
Web Catalog 2 demo (1997)
[OT] Xserve for Web Hosting (2003)
WebDNA Solutions ... sorry! (1997)
PROBLEM (1997)