Hello, I'm hoping someone can help out with something that's probably easy but not to me
I'm wondering if the following table can be redesign to avoid duplicates:
user | subscriptionID
a | 1
b | 1
c | 1
a | 2
b | 2
c | 2
a | 3
b | 3
c | 3
etc...
the problem for me is that this is a BIG table. I'm talking about 500 million records overall, probably 30 million distinct user entries and about 600 subscriptionIDs.
from a DB standpoint the problem is that there's a lot of users that have multiple subscriptions so at any point user "a" can have subscriptionID 1,2,3,4,5,6,7,8,9 and so on (600 tops theoretically).
another issue are the lookups as the application finds records using:
select user from table where user='a' and subscriptionID=254 (or any other number).
that complicates (I think) trying to do subscriptionID = 1,2,3,4,5,6,7,8,9 in a single field. I'm not even sure that's valid, efficient or possible.
Any advice would be greatly appreciated.