I am creating a web application that processes internal emails and other frequent small and medium fragments of text between users and clients. What is the best way to store this data? In a database (MySQL) or in the form of thousands of separate files? How to compress it (PHP gzcompress () or MySQL compression functions)?
This will not be a public application, so the user load will be minimal (less than 20 users at a time). However, there will be many posts going back and forth every day in the application, so I expect that over time the amount of data will grow quite strongly (which is why I would like to compress it).
I would like to store the data in a database for ease of access and portability, but some of the streams I saw here regarding images suggested using file storage. What do you think?
Thanks Seth
Edit for clarification: I do not require any text search, so I would tend to compress it to save space.
source
share