I would like to distribute my web application (php) without the need of having a database as a dependency. My first idea was to just store json strings to disk. Serialize this string whenever I needed to fetch the data. This however can become quite slow for large data-sets. Are there ways of doing this without the need of a dependency and to make it sort of usuable so that large data won’t make it really slow?
Share
The most obvious solution would be to use the built in SQLite support rather than a JSON based solution.
This will allow you to create SQL tables that are processed “in memory” and backed to standard text files on disk for storage, hence removing the need for a MySQL, etc. database to be set up and configured.