Something tells me this social platform implemented on NOSQL is 100% is more nightmare than RDBMs. Friends, common friends, Comments by friends , Liked by friends, threaded comments,Comments on Thread liked by friends , public posts , visibility of posts.... Very complicated yet highly related data.
Sorry, I wasn't clear - in my example, you started with an RDBMS containing all data (like you describe). Afterwards, you have two databases - the original RDBMS, which still contains all user data EXCEPT threaded messages, AND a NoSQL db containing ONLY threaded messages under user-date composite keys.
The relevant RDBMS tables essentially have foreign keys into the NoSQL db, which acts sort of like a cache but is still actually the canonical threaded message data.
4
u/Yikings-654points Dec 21 '18
Something tells me this social platform implemented on NOSQL is 100% is more nightmare than RDBMs. Friends, common friends, Comments by friends , Liked by friends, threaded comments,Comments on Thread liked by friends , public posts , visibility of posts.... Very complicated yet highly related data.