Version Migration

John Ralls jralls at ceridwen.us
Thu Aug 31 14:34:10 EDT 2017


> On Aug 31, 2017, at 10:35 AM, Matthew Pounsett <matt at conundrum.com> wrote:
> 
> 
> 
> On 31 August 2017 at 13:33, Geert Janssens <geert.gnucash at kobaltwit.be> wrote:
> 
> While these solutions will work most of the time they all have the same risk:
> if the snapshot is made while gnucash is updating the db, you end up with an
> inconsistent db file. I don't know how well sqlite3 handles this so the risk
> may be high or low.
> 
> I've done a few spot-checks for consistency and never run into a problem.  I don't know this for certain, but it looks as if GnuCash is wrapping each update in a transaction.  If it is doing that, it would ensure that the data written to disk is never inconsistent. 
> 

Unfortunately the transaction protection mirrors GnuCash objects, so while plain GnuCash transactions will be correctly protected, business operations will do the business-table changes in one SQL transaction and the actual transaction in another. I think that Scheduled Transaction changes will similarly commit the template transaction separately from the rest of the SX. There are no doubt other cases.

Regards,
John Ralls



More information about the gnucash-user mailing list