简体   繁体   中英

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. My 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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM