Reputation: 2220
I'm about to develop a sort of messaging system for a portal in which users will be able to communicate privately, each conversation will be about a single "topic" and at the end every conversation should be "closed". every user could have different conversations with different users about the same topic. so at the end there should be lot of conversations for every user. conversations will be not editable once sent to the recipient.
I was wondering if it is better to store those conversation in files, in which each time I append new messages, or if it better to store them in the mySQL.
Are there some drawbacks in one of the solutions? Does anyone has already had some experience about similar situations?
Upvotes: 0
Views: 133
Reputation: 498
I would recommend against filesystem:
If you care about size you could consider to compress your data before putting them into the database and uncompress it after reading from the database.
Upvotes: 1