Mongodb schema design for swipe card style application Mongodb schema design for swipe card style application database database

Mongodb schema design for swipe card style application


On a relational database I would use approach 1. It's and obvious choice as you have good SQL operators for the task and you can easily optimize the query.

With document databases I would choose approach 2. In this case there is a good chance the vote/skip list remaining relatively small as the system grows.