简体   繁体   中英

I need specific table data for each users

I am doing my master thesis and I found unknown problem.

I make football simulator app

-> you can simulate alternative football future for all European leagues.

But I have a problem in MySQL database

-> at the beginning of game I need to give user whole data.

But after this, some data evolves (some players score goals, teams have points), but I need to store these data for each user separately (for example, some user have 2 seasons simulated and some 10 seasons -> both with completely different results).

Is there any more effective way than having separate tables for each user (because for example players table have more than 50,000 rows)?

Thanks!

Using PHP7,node.js backend,MySQL db.

you can have one table for all users. Just seperate each user by user_id column.

create table seasion_with_users
(
    session_id
    user_id int,
    ....
    ....  
);

also If you have storage concern, I suggest you to mutate only changing rows.

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