This seems like a super obvious question, but I can’t find a good answer anywhere.
Where should I store my users’ text? My site lets users write posts of arbitrary length that needs to be stored somewhere.
Should this be in the DB? What do I do about text limits?
Or should it be in files referenced by the DB? Are there any serious pitfalls to look out for?
The best way is to store it in your Database, if you want to limit the text that is inserted you can use the maxlength Attribute in the input field that your customers are using to submit their comments.
http://www.w3schools.com/tags/att_input_maxlength.asp
Another good approach is to use some social plugin and allow your customers to post comments using their facebook or twitter accounts:
Some references:
https://developers.facebook.com/docs/reference/plugins/comments/
http://disqus.com/