I need to create an append only table which should only store a pair of values (foreign_id, some_string). There will be a limited number of foreign_id values (let's say 100 - 10 000) and 10s of millions of some_string values (they may not be evenly distributed between foreign_ids)
I am only interested whether a given (foreign_id, some_string) pair exists in the table.
What would be the most efficient way (when it comes to query response time) of partitioning this table?
I am pretty sure that creating a primary key PRIMARY KEY ((foreign_id), some_string) is a bad idea, because a single partition could easily grow beyond 100 MB which is not recommended AFAIK.
Should I simply partition the table by both foreign_id and some_string like this PRIMARY KEY ((foreign_id, some_string)) or is there some issue with this approach?