What if OpenDocument used SQLite? (2014)
sqlite.org
What if OpenDocument used SQLite? (2014)
1–10 of 310 posts
Re: What if OpenDocument used SQLite? (2014)
#2Zip vs tar vs filesystem vs sqlite. Tested all these scenarios, and sqlite was the fastest and the smallest, even beating plain archives with no overhead
Re: What if OpenDocument used SQLite? (2014)
#3This shocked me. Impressive how far SQLite's come in such a short space of time.
Re: What if OpenDocument used SQLite? (2014)
#4- On Linux, saving into a new file onto a root-owned but world-writable NTFS mount created in /etc/fstab, fails due to permission errors or something. Saving into an existing file works as usual.
- Files are modified on disk when you edit the project in the program, creating spurious Git diffs if you check Audacity projects into Git as binary blobs. And when you save the file, old and deleted data is left in the SQLite file until you close the project's window (unlike saving a file in a text editor), and you can accidentally commit that into a Git repo if you don't close the window before committing. (I recall at one point that you had to manually vacuum the .aup3 file, but now closing the window is sufficient.) I'm getting Word 2003 Fast Save vibes.
Re: What if OpenDocument used SQLite? (2014)
#5MongoDB also saves document db type of store space just FYI.
Re: What if OpenDocument used SQLite? (2014)
#6So to open a file I copy it into the :memory: database [1], then the user can do whatever manipulation they want and I can directly make the change in the database I don't need to have a model of the document other than its database format. And to save the document I VACUUM [2] it back to the database file. It works quite well, at least for reasonably sized file (which is always the case for my app) :).
Re: What if OpenDocument used SQLite? (2014)
#7> since OpenDocument predates SQLite This shocked me. Impressive how far SQLite's come in such a short space of time.
> OpenDocument - Initial release: 1 May 2005; 18 years ago
> SQLite - Initial release: 17 August 2000; 23 years ago
Wonder what gives.
Re: What if OpenDocument used SQLite? (2014)
#8Without being able to call out to existing standards, the ODT spec itself would suddenly become massive. The effort to update the standards appears to be significant and hasn't progressed much in recent years already :/
I think realistically, an Sqlite format could be offered as an option, but the office doc ship has really sailed.
Good argument to formalise the spec of Sqlite as a standard though...
Re: What if OpenDocument used SQLite? (2014)
#9At this point, why are we still using JSON/XML when there is SQLite for new projects? Stop the non sense of JSON/XML. SQLite is like json, but very queryable. Just send SQLite files around. MongoDB also saves document db type of store space just FYI.
SQLite files require opening in a DB terminal or using special software to even get to the point where one can see what’s there at all. Further the entire internet basically natively supports XML and JSON.
Re: What if OpenDocument used SQLite? (2014)
#10Other example: raster map tiles (basically up to millions of tiny square pictures) Zip vs tar vs filesystem vs sqlite. Tested all these scenarios, and sqlite was the fastest and the smallest, even beating plain archives with no overhead