Hacker News new | ask | show | jobs
by campnic 5257 days ago
I did something similar to this on android but opted for sqlite for metadata and file system for the image. The sqlite data is "master" and the file system is treated as "volatile" as it can be deleted by a user at any time.

Here were my opinions: 1) Using a combination of caching techniques (access time, etags, etc) was easier to manage with a structured store.

2) There was no perceivable latency writing to the database. This could be because of the difference in payload size writing the image to a file instead of into the table.

Some thoughts if people start out in this direction.