I have some doubts, i m developing a web application in GWT using MVP model.
Let assume that i m implementing a forum,so users could post comments, i m wondering how to keep this data?
For example ,a post could have 2000.. 3000 chars , i m thinking about files.. every category has it own posts, so i could store category per file ..
Or other idea is to hash the data ..
I would be glad to know more opinions and approaches..
Thanks guys.
Edit.
I see from the comments that database is the right decision, but should i insert the posts direct or do rework it somehow and then insert?
Database. Without options.
Moreover, database provides a much easier way to search, index and extend the data without any limits. For example if you decide that each post can have it’s smiley face – it is a question of 1 extra column in database. However with files it will become a real pain to convert all files to new format.
Also, what about relative data? As @The Elite Gentlemen mentioned, storing relative data in files is also painful. Yes, you will index the posts in categories by directory names, but how will you save the Author of the post? Link to his profile? Number of posts the author has or his avatar?