Sunday 30 June 2019

Can you suggest app's best database structure to store thousands of users entities ( MongoDB ) ?

I'm making a forum, with chat system and upvote/downvote system. Could someone suggest best way to structurize database, for best optimization to handle thousands of users ?I have several sections to think about:- Chat ( messages and dialogues ). In my case I'm just made two collections for dialogues and messages.- Upvotes, Downvotes. I'm storing them inside users record, in "upvoted", "downvoted" fields arrays.Also I will apreciate if you advise best practicies for app's database structure. Thank you!

Submitted June 30, 2019 at 11:26PM by woyshie

No comments:

Post a Comment