I'm developing a website, and for the settings and preferences like website language, ads layout, some template string messages for emails, etc, I decided to use a Json file instead of saving to database. Now is there any reason why I shouldn't use a json file and stick to database?
PS. I'm using Zend Framework 2 and I'll definitely set the correct permissions on the json file(644 maybe).
PSS. This is not a duplicate of JSON vs DATABASE. I don't think that I will be storing sensitive data in the json file.
Thank y'll.
EDIT: YES, I know that I'll be saving to a file, but I wanted to be more specific. I'll be saving to settings.json. A JSON FILE!
The answer is yes, there are reasons against using a File (whatever the format). If they are enough to switch to a database, that's for you to decide.
I can think of:
The points can probably summarized with: if you expect to grow your application to something that needs to scale, use a database. If you aren't, use whatever fits.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With