I program quite a bit in my free time as a hobby. Right now I'm working on managing thumbnails for images on disk. XnView uses an SQLite database for storing this info and accessing it; Windows uses a flat file for the image metadata and another for the actual image thumbnails. This has me curious if it's actually faster to use SQLite or if the XnView developer went for convenience instead.
From a performance standpoint, would it be faster to:
1) Use a flat file containing the file/folder metadata, including the size and offset of the corresponding thumbnail inside another flat file;
2) Use a SQLite database file with file metadata and the thumbnail binary data IN the database as a blob;
3) Follow a hybrid approach with SQLite for the metadata and size/offset information, then the thumbnails in a flat file.
I'm suspecting #3, but I wouldn't be asking if I knew. ;-)
Thanks for sating my curiosity,
Jon
From a performance standpoint, would it be faster to:
1) Use a flat file containing the file/folder metadata, including the size and offset of the corresponding thumbnail inside another flat file;
2) Use a SQLite database file with file metadata and the thumbnail binary data IN the database as a blob;
3) Follow a hybrid approach with SQLite for the metadata and size/offset information, then the thumbnails in a flat file.
I'm suspecting #3, but I wouldn't be asking if I knew. ;-)
Thanks for sating my curiosity,
Jon