new PurgeDatabase command? (was Re: NT vs Mac)
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14170
interpreted = N
texte = >>How about that math ceil/floor problem, I have a site that I must have it>>on and would like to keep it on the NT. Any Idea on a fix date?>>1) Since it was never documented, we had no date set for adding the feature>2) Since we're a nice company, how about tomorrow? (beta, hasn't gone thru QA>yet, but should work fine because it's a small change)>Since Grant is feeling so generous today (:>), how about adding thatPurgeDatabase command I brought up a few weeks ago? I don't remember everseeing a response from anyone at PCS/Starnine, but at least a couple peoplechimed in about how much they would like to see such a new tag.If you don't recall my request, I will quote Ken, who reworded my requestinto a cleaner solution:>In other words, what you really would like to have is a new tag that>purges the xxx.db data from RAM *without* writing it to disk. Yes,>that would make it possible to do everything you need, automatically,>in a single template like this:>>[CloseDatabase xxx.db]>[AppleScript]>Move the xxx.db file to the trash and rename the xxx.db copy file>to xxx.db>[/AppleScript]>[PurgeDatabase xxx.db]>>It won't make any difference how many people are searching the>xxx.db while the AppleScript is working, because they will be>working off a RAM-cached version of the original database anyways, at>least until WebCat receives an [append] or [closedatabase] or>[flushdatabases] or [PurgeDatabase] command.>>And once the AppleScript is done working and the data is purged from>RAM with the [PurgeDatabase] command, you really don't have to worry>about loading the new xxx.db into RAM, because it will be loaded>automatically into RAM the first time one of your templates needs to>deal with that database again.>>And if you're really in a hurry to reload the new xxx.db file>*before* one of your users has a chance to reload it, you can easily>put a [search] or a [lookup] after the [PurgeDatabase] tag, which>will make the database reload immediately after being purged from RAM.>>It seems the critical function of this proposed tag should be simply>to purge the RAM without writing it to disk (thus my suggested>PurgeDatabase name). Everything else can be done with WebDNA's>existing capabilities and with AppleScript.>>>Sincerely, Ken GromeThanks,Dale ________________________ ______________________________| Dale LaFountain | mailto:dalel@dhorse.com || MIS Director,WebMaster | web: http://www.dhorse.com/ || Dark Horse Comics, Inc.|Phone: 503-652-8815 x324 |\_________ID97___________|______________________________/
Associated Messages, from the most recent to the oldest:
>>How about that math ceil/floor problem, I have a site that I must have it>>on and would like to keep it on the NT. Any Idea on a fix date?>>1) Since it was never documented, we had no date set for adding the feature>2) Since we're a nice company, how about tomorrow? (beta, hasn't gone thru QA>yet, but should work fine because it's a small change)>Since Grant is feeling so generous today (:>), how about adding thatPurgeDatabase command I brought up a few weeks ago? I don't remember everseeing a response from anyone at PCS/Starnine, but at least a couple peoplechimed in about how much they would like to see such a new tag.If you don't recall my request, I will quote Ken, who reworded my requestinto a cleaner solution:>In other words, what you really would like to have is a new tag that>purges the xxx.db data from RAM *without* writing it to disk. Yes,>that would make it possible to do everything you need, automatically,>in a single template like this:>>[CloseDatabase xxx.db]>[AppleScript]>Move the xxx.db file to the trash and rename the xxx.db copy file>to xxx.db>[/AppleScript]>[PurgeDatabase xxx.db]>>It won't make any difference how many people are searching the>xxx.db while the AppleScript is working, because they will be>working off a RAM-cached version of the original database anyways, at>least until WebCat receives an
[append] or
[closedatabase] or>
[flushdatabases] or [PurgeDatabase] command.>>And once the AppleScript is done working and the data is purged from>RAM with the [PurgeDatabase] command, you really don't have to worry>about loading the new xxx.db into RAM, because it will be loaded>automatically into RAM the first time one of your templates needs to>deal with that database again.>>And if you're really in a hurry to reload the new xxx.db file>*before* one of your users has a chance to reload it, you can easily>put a
[search] or a
[lookup] after the [PurgeDatabase] tag, which>will make the database reload immediately after being purged from RAM.>>It seems the critical function of this proposed tag should be simply>to purge the RAM without writing it to disk (thus my suggested>PurgeDatabase name). Everything else can be done with WebDNA's>existing capabilities and with AppleScript.>>>Sincerely, Ken GromeThanks,Dale ________________________ ______________________________| Dale LaFountain | mailto:dalel@dhorse.com || MIS Director,WebMaster | web: http://www.dhorse.com/ || Dark Horse Comics, Inc.|Phone: 503-652-8815 x324 |\_________ID97___________|______________________________/
Dale LaFountain
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:
[PHP3] php vs WebCatalog (2000)
$Append for Users outside the ADMIN group (1997)
read and write you own cookies with webcat (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997)
Generating Report Totals (1997)
WC2.0 Memory Requirements (1997)
[showif] / [hideif] (1997)
WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997)
serial number not working-fixed (1998)
WebCat2b12 forgets serial # (1997)
Days to Date Woes (2004)
EIMS Problems (1997)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
Re:2nd WebCatalog2 Feature Request (1996)
WebCat2 - Getting to the browser's username/password data (1997)
Netscape for MacOS X (2001)
Re:no [search] with NT (1997)
international time (1997)
Emailer (1997)
[WebDNA] RESTART WebDNA (2016)