I'm writing a forum website, but i am having a problem with designing the database to hold the posts right now. From what I have read, phpBB 3 stores the user posted data as BLOB, and some store data as text. Is there an advantage that one would have over another? What about max characters if one were to store the data as text? I have never retrieved BLOB data from database and parse it to text (or whatever data it is meant to be for that matter) but I think learning how to use it would be interesting.
The text data for the post will be utf8 encoded. I'm using MySQL database.
Also, how would you allow uploading images for the forum and should the images be stored as part of the database, like in a BLOB for example, should should it be stored as individual files?
Any recommendation/suggestions are welcomed.
text
. If you store binary data, such as contents of a file to the database, you use ablob
. There's no reason to useblob
for forum posts. – Lactate