I am creating a small private social network community using PHP and MySQL. The thing is that the user profiles will be central and highly customizeable, with custom layout and lots of optional add-ons.
I was thinking of a database table, a user_meta
table, with three columns: user_id
, key
, value
The problem is that the profile layouts is more like a standard HTML markup site, and the profile table will increase in amount of rows very quickly, and it is very difficult to store complex custom design in the table.
What are the disadvantages of storing the profile layouts as text datafiles on the webserver when a member updates his or her profile? The datafiles could be php-free but parsed by a custom php-viewer to display the custom profile correctly.
Is there any other best practise to handle highly custom user created data blobs, optimized for speed?