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 that PurgeDatabase command I brought up a few weeks ago? I don't remember ever seeing a response from anyone at PCS/Starnine, but at least a couple people chimed 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 request into 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 that PurgeDatabase command I brought up a few weeks ago? I don't remember ever seeing a response from anyone at PCS/Starnine, but at least a couple people chimed 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 request into 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:

[SearchString] problem with [search] context (1997) extending webcatalog (1997) WCS Newbie question (1997) Getting total number of items ordered (1997) Purchase command error problem (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Only charge card when product shipped ? (1997) New Mac Public Beta Available (1997) Need relative path explanation (1997) NT error logs (1997) Encryption method used for [encrypt]? (2000) How do I get data out of an Orderfile... (2001) Protecting Images (2003) Help formatting search results w/ table (1997) Re:no [search] with NT (1997) method of payment (1997) Great product and great job ! (1997) Img in goodpath (2001) Search group and ww (FYI) (2003) Bad match! (2002)