5 ms·
I don't think there will be any huge difference between a text dump and binary formats here, git doesn't really care about the underlying data when it stores an
by chlorion 3y ago
I don't think there will be any huge difference between a text dump and binary formats here, git doesn't really care about the underlying data when it stores and packs it.
Maybe a text format that is sorted before saved would compress a lot better though, both with zlib compression and gits delta compression. You can't really sort a binary file and put it back together!
- astrobe_ 3y agoI'm more wondering about whether or not this Sqlite DB is actually a "source file", that is something that is not generated by something else, which is normally the base material for both make and Git. Obviously an SQLite DB cannot be created ex nihilo, so it is not a source file. Isn't it a bit dangerous to store the database file in the repo, and not the mean to generate it? If both are included in the repo, it then seems redundant (reproducible builds concerns, maybe?). Seeing that many people are interested in this topic, I wonder in which cases they would however want to track that file in Git.
- jiehong 3y ago> Obviously an SQLite DB cannot be created _ex nihilo_ Well, you can create it as a 0 bytes file with touch. However, you can do better, and run `sqlite3 mydb.db 'VACUUM;'`.