Re: Simple Database close connection
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39267
interpreted = N
texte = >Samuel Renkert wrote:> >> > shutdown webcat and webserver> > swap databases> > startup webcat and webserver> >> > Anyone trying to get to a page will just have to wait until your> > webserver is back up, shouldn't be long, seconds, maybe. I don't see> > how else you can keep people from opening your db's between steps 2> > and 3.> >>>Bad for us; all of our sites run 100% through WebCat so no pages at all>get served while it is down. And in one case, the file is being FTP'd>over a relatively slow WAN link, so we are talking minutes not seconds.I think if you are uploading to an active db you have trouble brewing. Webcat can close a db whenever it feels it needs more ram ([closedatabase] docs). So you run into a spot where webcat may have closed your db, and you've began uploading, now a user forces the db open. Webcat opens the db with half the data.It might be working ok for now, but it's by chance, not design.A safer alternative is to upload the file to a different location, then swap it in, thus you avoid opening an incomplete db AND you don't have to rely on a speedy upload time.A variation on what I said before, with more context...Assuming your directory structure looks like this....../activedbs/ first.db second.db0. create a new directory.../newdbs1. upload the new DBs into newdbs. (1 hour, but who cares!)2. kill webcat / webserver.3. move files from newdbs into activedbs.4. start webcat / webserver.HTHs-Sam-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Samuel Renkert wrote:> >> > shutdown webcat and webserver> > swap databases> > startup webcat and webserver> >> > Anyone trying to get to a page will just have to wait until your> > webserver is back up, shouldn't be long, seconds, maybe. I don't see> > how else you can keep people from opening your db's between steps 2> > and 3.> >>>Bad for us; all of our sites run 100% through WebCat so no pages at all>get served while it is down. And in one case, the file is being FTP'd>over a relatively slow WAN link, so we are talking minutes not seconds.I think if you are uploading to an active db you have trouble brewing. Webcat can close a db whenever it feels it needs more ram ([closedatabase] docs). So you run into a spot where webcat may have closed your db, and you've began uploading, now a user forces the db open. Webcat opens the db with half the data.It might be working ok for now, but it's by chance, not design.A safer alternative is to upload the file to a different location, then swap it in, thus you avoid opening an incomplete db AND you don't have to rely on a speedy upload time.A variation on what I said before, with more context...Assuming your directory structure looks like this....../activedbs/ first.db second.db0. create a new directory.../newdbs1. upload the new DBs into newdbs. (1 hour, but who cares!)2. kill webcat / webserver.3. move files from newdbs into activedbs.4. start webcat / webserver.HTHs-Sam-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Samuel Renkert
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:
Trouble with [Math] (1998)
Frames (1997)
WebCAT MacOS9 --> OSX (2003)
Secure server question (1997)
WCS Newbie question (1997)
Emailer choke (1997)
Running _every_ page through WebCat-error.html (1997)
External Images (1998)
Character limit in [Search]? (1998)
newcart (1997)
attn: smitmicro - cart limitation (2002)
SmithMicro FTP problems (2002)
[ShowNext] feature in 2.0 (1997)
Emailer help....! (1997)
Conversion Database Question (2001)
Multiple Items (1998)
WebCat2b15MacPlugin - [protect] (1997)
Wonderin' whats the way (1998)
Can Web Cat Do this? - LOOK (2000)
Requiring that certain fields be completed (1997)