How should I structure my MongoDB collection to store video watching history of users?
Anonymous
I am developing a video on demand API with watch history which saves the videos that a user watched. I need suggestion on how to create the collection.
Should I:
- Create create collections for each user
- or create collection for all the users - that way I will be posting to the single collection the video user watched with username and user id.
If you have better alternatives, feel free to share with me.