Hi, i’m new to MongoDB and I’m building a Tinder like app and but i’m not sure what is the best way to model my data. The first approach came to my mind was doing something like this :
this works fine but like i said i’m new to MongoDB and i’m worried as my list keep growing. Is this a good way to structure my data or there is a better way?
First of all, thanks for your reply. I read the article, it is interesting but unfortunately i don’t think that the outlier pattern could be useful in my use case.
Actually, i didn’t explain well my use case. In my app when a user clicks on the search button, the app will suggest another user to chat with. So there is no this notion of matching. Maybe SuggestedUsers will be better naming than matchedUsers.
So basically, what i’am trying to do is to fetch a nearby user without suggesting the same user twice.