I want to make two tables. One is user table and another one is users data table.And I want to link them by using the "id" like below
table A (user)
1 | user 1
2 | user 2
table B (userdata)
1 | data 1
1 | data 2
1 | data 3
2 | data 1
2 | data 2
2 | data 3
I want to partition userdata (table B
) for each user in table A
. If I have 10 users (10 rows in user table (table A
)) then I do 10 partitions for each user in userdata
(table B
) table.
My question is if I have more than 100000 users then is it possible to partition userdata
(table B
) table into 100000 partitions so that each partition gets one user in table A
?
According to mysql 5.5 limitations we cannot partition table more than 1024. So is there any alternative to store userdata so that I can easily search data of each user?