Why fork is used?
fork is the right way to make sure your MongoDB runs as a daemon. In this case, fork should be defined as true in the configuration file. If you want to run it as an interactive process. just set it to false.
How to Perform Lookup?
db.classes.aggregate( [
{ $lookup: {
from: "members",
localField: "enrollmentlist",
foreignField: "name",
as: "enrollee_info"
}}
])
mongostat and mongotop
These two great tools are provided as part of the MongoDB installation and can be used to detect the queries types and collections that most heavily affect the MongoDB performance.
Simple Backup and Restore
mongorestore mongodb://127.0.0.1 /tmp/dump/