Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Who said databases have to be remote?


The "datastore" is a gzip+base64-encoded serialized PHP object written to a file.

PHP has SQLite built-in, which has the same single-file property with a lot better durability, portability, and stability guarantees.


SQLite would be nowhere near the current design in term of performance. Typical shaarli usage involve little update (a dozen a day maximum) an a lot of read (10k+ pages viewed per day on sebsauvage's instance (shaarli's creator, an influent french blogger). Thé file system's cache works really well in this kind of scenario, way better than SQLite.

For the stability guarantees, shaarli exists since 2011 and is used in production by many (several hundred) people without trouble.


Well since sqlite is also single file, would it really decrease file system cache efficiency ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: