Re: CommitDatabase vs. CloseDatabase

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39533
interpreted = N
texte = >I'm not sure when CommitDatabase should be used instead of CloseDatabase. > >CloseDatabase will cause all info in RAM to be written to the >harddrive. As soon as the database is needed afterwards, the >database will be opened and its contents will again be in RAM and >available to the templates. If the server crashes, the database will >not be lost. > >CommitDatabase writes the info in RAM to the harddrive, but does not >close the database. Again, if the server crashes, the database will >not be lost. > >If I have this right, why would one protect a database better than the other?One doesn't. They both protect a DB equally well (in a simple case), but webcat does not have to flush a db and reload a db if you use commitdatabase.> >Glenn > >------------------------------------------------------------- >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/ ------------------------------------------------------------- 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:

    
  1. Re: CommitDatabase vs. CloseDatabase (Christer Olsson 2001)
  2. Re: CommitDatabase vs. CloseDatabase (Samuel Renkert 2001)
  3. Re: CommitDatabase vs. CloseDatabase (Christer Olsson 2001)
  4. Re: CommitDatabase vs. CloseDatabase (Samuel Renkert 2001)
  5. Re: CommitDatabase vs. CloseDatabase (Christer Olsson 2001)
  6. Re: CommitDatabase vs. CloseDatabase (Glenn Busbin 2001)
  7. Re: CommitDatabase vs. CloseDatabase (Samuel Renkert 2001)
  8. Re: CommitDatabase vs. CloseDatabase (Grant Hulbert 2001)
  9. Re: CommitDatabase vs. CloseDatabase (Alex McCombie 2001)
  10. Re: CommitDatabase vs. CloseDatabase (Glenn Busbin 2001)
  11. Re: CommitDatabase vs. CloseDatabase (Glenn Busbin 2001)
  12. Re: CommitDatabase vs. CloseDatabase (Samuel Renkert 2001)
  13. Re: CommitDatabase vs. CloseDatabase (Nitai @ ComputerOil 2001)
  14. Re: CommitDatabase vs. CloseDatabase (Nitai @ ComputerOil 2001)
  15. Re: CommitDatabase vs. CloseDatabase (Christer Olsson 2001)
  16. CommitDatabase vs. CloseDatabase (Glenn Busbin 2001)
>I'm not sure when CommitDatabase should be used instead of CloseDatabase. > >CloseDatabase will cause all info in RAM to be written to the >harddrive. As soon as the database is needed afterwards, the >database will be opened and its contents will again be in RAM and >available to the templates. If the server crashes, the database will >not be lost. > >CommitDatabase writes the info in RAM to the harddrive, but does not >close the database. Again, if the server crashes, the database will >not be lost. > >If I have this right, why would one protect a database better than the other?One doesn't. They both protect a DB equally well (in a simple case), but webcat does not have to flush a db and reload a db if you use commitdatabase.> >Glenn > >------------------------------------------------------------- >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/ ------------------------------------------------------------- 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:

I want a 404 (2005) Multiple prices (1997) pull downs (1997) Re:HTTP header line is too long? (1997) WC Database Format (1997) WebDNA on Intel Mac? (2006) ShipCosts database (1997) Personal Web Server combined with Webcatalog 2.1 (1998) thankyou.tmpl (1997) form data submission gets truncated (1997) Targeting [redirect] to a frame? (1998) WebMerchant Q (2000) Fwd: Problems with Webcatalog Plug-in (1997) PayPal WebMerchant Templates (2006) [math] variable question (1997) Using Applescript to process WebCatalog functions (1998) Sandboxes & Kitty Litter trays (2003) HELP WITH DATES (1997) RE: Formulas.db + Users.db (1997) Server crash (1997)