tlf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ToDo item: switch logfile to database


From: Christoph Berg
Subject: Re: ToDo item: switch logfile to database
Date: Thu, 28 Dec 2023 20:06:42 +0100

Re: Thomas Beierlein
> Two points here:
> 
> - Journaling is easy, but to be honest TLF provides quite some
>   robustness in that sense too. I have not heard any complies about
>   lost data in all the years.

Some time last year, I was auditing (well, reading) the tlf source to
check that. There are sync() and fsync() calls in there, so it's
probably mostly safe, but since calls that write to disk are spread
over the code, data safety looks quite ad-hoc. If power goes out while
the log is just being written, I'd bet there will be problems.

Switching to sqlite would get us crash safety for free since that's a
library specifically written for that.

https://www.sqlite.org/howtocorrupt.html

But sqlite is not a networking database. If you want that, use
PostgreSQL.

73,
Christoph DF7CB



reply via email to

[Prev in Thread] Current Thread [Next in Thread]