I'm not sure how it compares to Borg's delta- and zstd-compression, though.
[1]: http://alexey.shpakovsky.ru/en/minimizing-size-of-browser-pr...
I'm not sure how it compares to Borg's delta- and zstd-compression, though.
[1]: http://alexey.shpakovsky.ru/en/minimizing-size-of-browser-pr...
Edit. Regardless of if you maybe even meant that, I made a small test too: A 42 MB db zipped is 8.8M, but its sql dump zipped is 4.9M, so almost half the size. Pretty good already. If you don't just `.dump` but actually output the tables in a consistently sorted manner, the size might go down even more and will enable very efficient delta-ing. Questionable value to effort ratio though...
[1]: https://www.sqlite.org/sqlanalyze.html
On the other side, indeed, text dump is likely not the most space-efficient way of storing raw DB data (compared to some binary one), so I wouldn't be surprised to find databases for which gzipped sql dump is bigger than (gzipped) database itself. I would even say that I'm surprised that it's not true for most databases :)