[DGD] Persistance

Par Winzell zell at skotos.net
Thu Jan 8 20:38:00 CET 2004


> I understand now. :) My main concern in the back of my mind is some big 
> crash. Is there any way of recovering the swapfile? Does retrieving a 
> statedump do this?

DGD creates a state dump by swapping everything out (completing the swap 
file, which is presumably already 95% done) and copying the swap file 
along with a little bit of extra information.

If you crash, you lose all the data since your last state dump. If you 
have data that absolutely must remain up to date and stored every minute 
or something, then yes you do need a secondary storage mechanism for it; 
perhaps using save_object(), or more likely, a log of some kind with 
which you can recreate the state changes since the last dump.

Zell

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list