Reputation: 1702
I'm building a aweber-like list management system (for phone numbers, not emails).
There are campaigns. A phone number is associated with each campaign. Users can text to a number after which they will be subscribed.
I'm building "Create a New Campaign" page.
My current strategy is to create a separate table for each campaign (campaign_1,campaign_2,...,campaign_n) and store the subscriber data in it.
It's also possible to just create a single table and add a campaign_id
column to it.
Each campaign is supposed to have 5k to 25k users.
Which is a better option? #1 or #2?
Upvotes: 0
Views: 128
Reputation: 29985
I suppose it really depends on the amount of campaigns you're going to have. Let's give you some pros/cons:
Pros for campaign_n:
Cons for campaign_n:
Personally I'd go for option 2 (campaign_id field), unless you have a really good reason not to.
Upvotes: 1