For a social network site, I need to store frequently modified lists for each entity(& millions of such entities) which are:
- frequently appended to
- frequently read
- sometimes reduced
- lists are keyed by primary key
I'm already storing some other type of data in an RDBMS. I know that I could store those lists in an RDBMS as a many to many relationship like this way: Create a table listItems
with two columns listId
& listItem
& to generate any particular list, just do a SELECT
query for all records WHERE listId = x
. But storing lists this way in an RDBMS is not very ideal when high scalability is concerned. Instead I would like to store prepared lists in a natural way, so that retrieval performance is maximized. Because I need to fetch around hundred of such lists for a user, whenever I user does login & view a page.
So how do I solve this ? What kind of database should be used for this data, probably the one that provide adding variable no of columns to keyed by a primary key, the ones like Cassandra ?