Brogramo
Guest
Guest

Common MongoDB Questions for Beginners

The MongoDB shell uses which programming language?

“The mongo shell is an interactive JavaScript interface to MongoDB” (MongoDB).

The document data structure resembles which traditional relational database element?

The MongoDB manual states that a document in MongoDB is a row in a relational database.

David Huner’s input from istouchidhackedyet.com is that “a tuple is simply a row contained in a table in the tablespace.”

With this information, we can say that a document data structure resembles a tuple element in a traditional database.

Which MongoDB aggregation operator maps to the SQL “ORDER BY” term?

The MongoDB manual states that the sort() operator in MongoDB is equivalent to the “ORDER BY” in SQL.

Which MongoDB feature can be used to enhance the performance of queries?

The MongoDB manual states that “Indexes also improve efficiency on queries that routinely sort on a given field.” In short, indexes can be used to enhance the performance of queries.

Does MongoDB support horizontal scaling out?

According to the MongoDB manual, MongoDB “MongoDB supports horizontal scaling through sharding.”