Storing data submitted from users
I am creating a site that will be hosting lists for the users. They will be able to access these lists and then make sub-lists that can also be saved/shared/whatever.
I am trying to figure out the best way to handle this data. M开发者_Go百科y first thought is to make every user their own table in MySQL and store the relevant info there. If this turns out to be the best option, a pointer towards an article that you know of that covers this would be much appreciated.
If MySQL is not the best rout, what would you suggest?
Thanks in advance.
Here a simple DataBase layout :
TableUser:
UserId
UserName
OtherInfos
TableListUser:
ListUserId
ListId
UserId
TableList:
ListId
ListProprety
TableListItem:
ListItemId
ListId
ListInfos
Normaly MySQL should work, but that depens a lot on the size of the data, the number of user, the number of requests/seconds .... That is your call.
MySql is the way to go but you don't want to create one table for each user. You only need one certain table to store all the users.
What kind of lists do you want the users to access/create?
精彩评论