
Explore MongoDB fundamentals by guiding software developers from installation to writing simple to complex queries.
Explore MongoDB fundamentals by examining documents in collections stored as BSON (binary JSON), with a dynamic schema, embedded fields, and no joins or multi-document transactions.
All the example code used in the videos and the resources (data for importing) are available in the zip file "examples-and-resources.zip".
Please extract the same for your use.
Insert documents into a contact collection, perform bulk inserts, and use find with pretty to view multiple records, illustrating MongoDB's schema-less noSQL approach.
Import data into mongo using mongoimport from csv or json files. Specify the database and collection, then view results with find and iterate through the 1000 documents.
Explore executing MongoDB commands beyond the shell, including creating and running script files. Connect to localhost:27017, use the test database, and run multi-command scripts via input redirection.
Explore save() versus insert() in MongoDB fundamentals, demonstrating how insert creates a new document and errors on duplicate _id, and how updating existing data affects modified counts.
Use the find function with selection criteria and projection to restrict documents and return only chosen fields like first name, last name, and city.
Apply selection by specifying an object representing conditions to filter documents, such as city equals Chicago using the $eq operator, then use pretty and find to view results.
Explore more complex MongoDB queries by importing JSON data into a sales collection, viewing documents, and filtering by sales amount greater than or equal to 10,000.
MongoDB fundamentals by building queries with $and, $or, and $in to filter sales data between 5000 and 6000, and retrieve documents from quarters 1 or 3.
Learn how the $where operator evaluates JavaScript conditions on each document in a MongoDB collection, using the this keyword to access fields and filter results.
Note: The data in the employees.json is a bit different from the one in the video. So while executing the queries and commands you may see different results.
Explore how MapReduce in MongoDB groups documents by department, using map and reduce functions to sum salaries and filter data with options.
MongoDB scans all documents by default; create a single-field index on a frequently queried field like phone to boost performance, then use explain and getIndexes to manage indexes.
Learn how to import documents into MongoDB, locate a document by _id, and update fields using the update command and the $set operator, adding new properties like details.
Learn how the upsert operation works in MongoDB fundamentals by updating a product by id, creating a new document when no match exists, and using $set to preserve fields.
Learn how to increment the unit price of all products in a given brand using the Mongo shell, applying $inc and the multi update option to affect multiple documents.
Learn to delete documents in MongoDB using the remove operation with criteria, deleting multiple matches or a single document, with permanent, undo-free results.
Mongodb is a one of the most popular NO-SQL database management system today. As against the traditional RDBMS, it stores the data in an unnormalized way, in binary JSON format.
Mongodb is an open source document database. The name is derived from Humongous DB. This falls into the category of NO-SQL databases. The data in Mongodb is stored in an un-normalized format, as a collection of documents. A collection in Mongodb is equivalent of a table in RDBMS and a document is equivalent of a record. However, unlike a record, a document need not have the same structure as other documents in the same collection.
All the best!