Currently, if the system crashes while Entities are waiting to be written to disk, those updates are lost. While sqlite won't let the file get corrupted, it may cause the references to be all messed up. To solve this, either 'fsck' type code needs to be written that re-generates all the references, or database updates need to be committed as a unit to prevent it from happening in the first place. Or maybe there's some other better way?
Currently, if the system crashes while Entities are waiting to be written to disk, those updates are lost. While sqlite won't let the file get corrupted, it may cause the references to be all messed up. To solve this, either 'fsck' type code needs to be written that re-generates all the references, or database updates need to be committed as a unit to prevent it from happening in the first place. Or maybe there's some other better way?