Topic: Mongo DB
We have a bookmarking website which is in ruby on rails and mongoDB as back end. The website is developed in an API layer concept that is one rails application for database manipulation and one for website. The data communication between these two application is through web services (API call).
We are facing certain issues in mongoBD data fetching.
Bookmark collection is built in mongoDB document-embedded document concept. That is bookmark details are in document and users details are embedded in it as embedded document. While fetching logged user's added bookmarks, we are getting the whole record and hence the checking with each embedded document required long time and the site became very slow. And also, in embedded document we saved only BSON id of user collection and we have no options to join these two collection.
Here is our bookmark collection structure: