I don't want my system slowed down just because there might sometime be a
crash but it would seem sensible to set a flag in the dB when dt starts and
unset it when it shuts down normally. If the flag is set when dt starts
then it can run some checks or just warn the user.

Paul

On Fri, 21 Oct 2022, 06:33 Michael Staats, <michael.sta...@gmx.de> wrote:

> On 19/10/2022 18:28, Patrick Shanahan wrote:
> >
> > everything is about timing.  the database is updated when you close dt,
> > iiuc.
>
> Hi,
> is this really correct? I hope not. To be honest, I did not check the
> code, but I would recommend to update the DB (and commit) much more
> frequently, like
>
> - if you move to the next picture
> - before exporting
> - if you receive some (catchable) SIG* that leads to termination
> - maybe even every N minutes (ok, using timers might be a bit too much
> effort unless they are already being used), so maybe better
> - every N "edits" (whatever an "edit" is, sth like activating a new module)
>
> This would help and limit loss of DB information to one picture. But sure
>
> >  if one experiences a system crash, all bets on anything are off.
>
> Correct. So a real system crash should be investigated and the root
> cause be removed.
>
> > but the edits are not lost
>
> That depends. In the worst case, dt cannot even write the complete xmp.
> This would affect only one picture, probably&hopefully. Unless your file
> system gets corrupted by the crash. Then both xmp and DB might be lost...
>
> So
>
> > and anyone experiencing frequent system crashes
>
> you should find out the root cause and remove it.
>
> But you said that already ;-)
>
> > ps: anyone now days experiencing "frequent" system crashes should
> identify
> > the cause and correct it rather than complain about loosing data, which
> > *should* be expected.
>
> Best regards,
>         Michael
>
>
> --
> Michael Staats
> michael.sta...@gmx.de
>
>
> ____________________________________________________________________________
> darktable user mailing list
> to unsubscribe send a mail to
> darktable-user+unsubscr...@lists.darktable.org
>
>

____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org

Reply via email to