Which of the following three would likely be least intensive on a busy system?
Notes: possibly up to 500 or 600 forumids. Would have one row per forumid per user (possibly up to 50,000 or more users). Not necessarily all userid's will have a row for each forumid.PHP Code:CREATE TABLE forum (
userid
forumid
)
Notes: One column for each forum, up to 500 or 600. One row per user. Not all columns will necessarily have a value for every user.PHP Code:CREATE TABLE forum (
userid,
forum1,
forum2,
forum3,
...,
...,
...,
forum500,
forum501,
forum502
)
Notes: Store forumids as comma-delimited list, explode'd into an array for use in the program. Length of actual list varies per user, but could be up to 500 or 600 items per list.PHP Code:ALTER TABLE user ADD COLUMN forumids MEDIUM TEXT;
Any thoughts on how I should go about this?
I have obviously left off the details of each column such as type etc. but this is the basic idea.




Bookmarks