Re: FlushDatabase Suggestion
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18050
interpreted = N
texte = Bob Minor wrote:> [copyfile path=new/yourdb.db&to=yourdb.db]> [copyfile path=yourdb.db&to=backup/archive.db](just for protection)> [closedatabase path/to/some.db]> [deletefile path=yourdb.db]> [copyfile path=path/to/some.db&to=../somefolder/archive.db]But hits are arriving the entire time these commands are being processed. Immediately after receiving a closedatabase, WC could receive hits prior toreceiving the deletefile. There's an old copy loaded in RAM, aimed at blowingaway the new copy you have just written to disk, baby. (Sorry, the gunmetaphore made my testosterone gland tingle.)I think you have to quit WebStar & WebCat CGI, replace the db & relaunch. Itwould be great if you could use a tag to flush RAM & stop processing of all WCcommands, etc., except for file manipulations, then resume full processingafter file manipulations were complete.-Pat
Associated Messages, from the most recent to the oldest:
Bob Minor wrote:> [copyfile path=new/yourdb.db&to=yourdb.db]> [copyfile path=yourdb.db&to=backup/archive.db](just for protection)> [closedatabase path/to/some.db]> [deletefile path=yourdb.db]> [copyfile path=path/to/some.db&to=../somefolder/archive.db]But hits are arriving the entire time these commands are being processed. Immediately after receiving a closedatabase, WC could receive hits prior toreceiving the deletefile. There's an old copy loaded in RAM, aimed at blowingaway the new copy you have just written to disk, baby. (Sorry, the gunmetaphore made my testosterone gland tingle.)I think you have to quit WebStar & WebCat CGI, replace the db & relaunch. Itwould be great if you could use a tag to flush RAM & stop processing of all WCcommands, etc., except for file manipulations, then resume full processingafter file manipulations were complete.-Pat
Pat McCormick
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:
removing commas from a preformatted number (2000)
Bad match! (2002)
[click][/click] (1999)
This list needs a digest: rant, rave... (1997)
Old Topic - [OT] - server speeds. (2002)
Kaaaaahhhhhhhnnnnnnn! (1997)
Integration? (1999)
IIS Brain Dead (1998)
Erotic Sites (1997)
Most Efficiant Way to do restricted Areas (1997)
Rendering out a page (1997)
WebCat2 - [SendNews] (1997)
suffix mapping for NT? (1997)
Wrapping text (1998)
more ! testing (1997)
A few questions. . . (1997)
Running WebCat from a CD-ROM (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
[Sum] function? (1997)
flushdatabases (1997)