Re:SQLite small blob storage: 35% Faster Than the Filesystem
by jstimpfle on Wednesday June 14, 2017 @09:24AM
(#14552492)
No, my analysis is totally correct.
This was just about opening a file and appending a few bytes vs appending to an open file. Obviously the latter can't be slower (and is typically faster).
The major differences here are due to the different levels of isolation and authentication that the kernel and SQLite provide. Another difference is the fact that when you find a row in SQLite by primary key, you don't have to do a second lookup to get the data from the metadata. This is a good optimization to use when storing many small pieces of data, but a bad optimization for large pieces of data.