Re: Updating a database once per day - An example
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17997
interpreted = N
texte = >>I've been following this thread for a while now and I like Ken's technique>>for handling the data swap - I only have one concern. What happens if your>>[deletefile] calls out a db that has recently been closed by WebCat because>>of a RAM limit?>>It still deletes the file, and that's all that matters.>>>Are you taking steps to make sure the file IS in RAM before>>you delete the disk-based copy?>>No, because it doesn't have to be in RAM beforehand.>>The critical point is simply to make sure that from the instant it is>purged from the RAM cache, it *stays purged* -- until WebCat has moved the>new db file into position. The [delete] simply gets rid of the file on>disk, so there's no chance of it being reloaded into RAM again ... until>AFTER the new file is in position ... :)>Wait!Since I started this thread & I articulated two assumptions for this scenario:#1the new database file is in position (with the same file name in the samefolder) before the closedatabase command gets issued.#2 the database contents get updated manually, they never gets updatedthrough WebCatalog- thus, when one issues the [CLOSEDATABASE my.db] command, no changes getwritten to diskbecause WebCatalog does not think there any changes.My testing leads me believe that one does not need to move and delete andcopy files if one sticks with the above two assumptions, but Ken seems todisagree. I think a ruling by PCS is needed.Steve Rosenbaumsteve@pop-art.com
Associated Messages, from the most recent to the oldest:
>>I've been following this thread for a while now and I like Ken's technique>>for handling the data swap - I only have one concern. What happens if your>>
[deletefile] calls out a db that has recently been closed by WebCat because>>of a RAM limit?>>It still deletes the file, and that's all that matters.>>>Are you taking steps to make sure the file IS in RAM before>>you delete the disk-based copy?>>No, because it doesn't have to be in RAM beforehand.>>The critical point is simply to make sure that from the instant it is>purged from the RAM cache, it *stays purged* -- until WebCat has moved the>new db file into position. The
[delete] simply gets rid of the file on>disk, so there's no chance of it being reloaded into RAM again ... until>AFTER the new file is in position ... :)>Wait!Since I started this thread & I articulated two assumptions for this scenario:#1the new database file is in position (with the same file name in the samefolder) before the closedatabase command gets issued.#2 the database contents get updated manually, they never gets updatedthrough WebCatalog- thus, when one issues the [CLOSEDATABASE my.db] command, no changes getwritten to diskbecause WebCatalog does not think there any changes.My testing leads me believe that one does not need to move and delete andcopy files if one sticks with the above two assumptions, but Ken seems todisagree. I think a ruling by PCS is needed.Steve Rosenbaumsteve@pop-art.com
Steve Rosenbaum
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:
WebDNA creates DUPLICATE SHOPPING CART NUMBERS (2004)
WebDelivery downloads alias, not original ? (1997)
WCS Newbie question (1997)
The code, one more time. (2003)
Frames and WebCat (1997)
no global [username] or [password] displayed ... (1997)
Emailer port change (1997)
Supressing Error Messages (1998)
Looking for 5 to 12 shops with 3 URLs & statements (1997)
[if] and [showif] (2002)
Shownext from POST (2000)
WebCatalog NT beta 18 now available (1997)
[WebDNA] [announce] CICADA Gold Products (2009)
getting images' width/height (1998)
[shownext] and descending order (1997)
[protect] on NT? (1997)
Math confusion (2004)
creator code (1997)
re: [addlineitem] working almost (1997)
syntax question, not in online refernce (1997)