▲ | lxgr 2 days ago | ||||||||||||||||||||||||||||||||||
It would be absolutely out of place if your lower layers already provided it, and not enough if they didn't (since you'd then also need checksums on the actual database file, which SQLite does not provide – all writes happen again there!) | |||||||||||||||||||||||||||||||||||
▲ | AlotOfReading 2 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
sqlite does actually provide database checksums, via the vfs extension I mentioned previously. There's no harm to having redundant checksums and it's not truly redundant for small messages. It's pretty common for systems not to have lower level checksumming either. Lots of people are still running NTFS/EXT4 on hardware that doesn't do granular checksums or protect data in transit. Of course this is all a moot point because sqlite does WAL checksums, it just does them with an obsolete algorithm. | |||||||||||||||||||||||||||||||||||
|