title
MongoDB Crash Course
description
In this video we will go over MongoDB, which is a popular NoSQL database that is commonly used with Node.js and other technologies.
New 2022 crash course featuring Jesse Hall, a MongoDB developer advocate:
https://www.youtube.com/watch?v=2QQGWYe7IDU
MongoDB Cheat Sheet:
https://gist.github.com/bradtraversy/f407d642bdc3b31681bc7e56d95485b6
Sponsor: DevMountain Bootcamp
https://goo.gl/6q0dEa
Mac Install:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
💖 Become a Patron: Show support & get perks!
http://www.patreon.com/traversymedia
Udemy Courses:
https://www.traversymedia.com
Follow Traversy Media:
https://www.facebook.com/traversymedia
https://www.twitter.com/traversymedia
https://www.instagram.com/traversymedia
detail
{'title': 'MongoDB Crash Course', 'heatmap': [{'end': 442.763, 'start': 374.716, 'weight': 1}], 'summary': "《mongodb crash course》 covers mongodb's flexibility without predefined schemas, installation guides for windows and mac, managing databases and collections, querying and manipulation, update operations, setting up mongodb atlas, and database user creation with full control and temporary access.", 'chapters': [{'end': 219.977, 'segs': [{'end': 53.178, 'src': 'embed', 'start': 26.391, 'weight': 4, 'content': [{'end': 32.334, 'text': 'so i did a crash course about three years ago on Mongo, but some things have been updated.', 'start': 26.391, 'duration': 5.943}, {'end': 36.835, 'text': 'We now have Compass, which is a graphical user interface that you can install locally.', 'start': 32.394, 'duration': 4.441}, {'end': 41.576, 'text': 'We have MongoDB Atlas, which is a cloud implementation of Mongo.', 'start': 36.915, 'duration': 4.661}, {'end': 42.776, 'text': 'So some things have changed.', 'start': 41.636, 'duration': 1.14}, {'end': 44.596, 'text': 'So I want to touch on that stuff.', 'start': 43.156, 'duration': 1.44}, {'end': 48.437, 'text': 'I also want to jump into the Mongo shell.', 'start': 45.016, 'duration': 3.421}, {'end': 53.178, 'text': "I'm going to show you how to set up Mongo locally, whether you're on Windows or Mac.", 'start': 48.477, 'duration': 4.701}], 'summary': 'Updated mongodb features include compass, a gui, and mongodb atlas, a cloud implementation. also covers setting up mongo locally.', 'duration': 26.787, 'max_score': 26.391, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ26391.jpg'}, {'end': 171.186, 'src': 'embed', 'start': 127.529, 'weight': 0, 'content': [{'end': 130.11, 'text': 'Similar to Jason, but it has some added data types.', 'start': 127.529, 'duration': 2.581}, {'end': 136.694, 'text': "So if you're familiar with JavaScript, then you are, you know, picking up Mongo is pretty easy.", 'start': 130.55, 'duration': 6.144}, {'end': 140.696, 'text': "And I believe that's why it's so popular in the JavaScript community.", 'start': 137.174, 'duration': 3.522}, {'end': 145.099, 'text': 'We have the Mern stack, the mean stack, the M and all these stacks is MongoDB.', 'start': 140.716, 'duration': 4.383}, {'end': 148.72, 'text': "As far as advantages, it's very, very scalable.", 'start': 146.299, 'duration': 2.421}, {'end': 159.583, 'text': 'It has built in replication and sharding and it scales horizontally, meaning you can just add very cheap machines to build up your cluster.', 'start': 149.48, 'duration': 10.103}, {'end': 161.603, 'text': "It's performing, it's fast.", 'start': 160.083, 'duration': 1.52}, {'end': 164.524, 'text': 'And what I love about it is how flexible it is.', 'start': 162.263, 'duration': 2.261}, {'end': 171.186, 'text': 'So the data structure, like I said, is very much like just a JavaScript object, basically.', 'start': 165.064, 'duration': 6.122}], 'summary': 'Mongodb is popular for its scalability, speed, and flexibility, favored in javascript community with mern and mean stacks.', 'duration': 43.657, 'max_score': 127.529, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ127529.jpg'}, {'end': 222.219, 'src': 'embed', 'start': 197.16, 'weight': 2, 'content': [{'end': 203.723, 'text': "We have the freedom to structure our data however we want through our application, and that's why I like it so much.", 'start': 197.16, 'duration': 6.563}, {'end': 207.225, 'text': "And I'm not saying it's better than relational databases.", 'start': 204.384, 'duration': 2.841}, {'end': 217.19, 'text': "I think there's certain situations, certain use cases that are better with MongoDB and certain projects that are better with relational databases.", 'start': 207.265, 'duration': 9.925}, {'end': 218.431, 'text': "All right, so I don't want to..", 'start': 217.75, 'duration': 0.681}, {'end': 219.977, 'text': 'yap too much.', 'start': 219.136, 'duration': 0.841}, {'end': 222.219, 'text': "let's jump in and get started now.", 'start': 219.977, 'duration': 2.242}], 'summary': 'Flexibility in data structuring with mongodb, suitable for specific use cases, alongside relational databases.', 'duration': 25.059, 'max_score': 197.16, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ197160.jpg'}], 'start': 7.059, 'title': "Mongodb's flexibility and use cases", 'summary': "Covers mongodb's flexibility without predefined schemas, comparing it to mysql and highlighting its suitability for specific use cases. it also discusses nosql databases, focusing on mongodb's scalability, replication, sharding, and popularity in the javascript community.", 'chapters': [{'end': 93.281, 'start': 7.059, 'title': 'Mongodb crash course', 'summary': 'Introduces the mongodb crash course, covering the latest updates including the introduction of compass and mongodb atlas, as well as providing guidance on setting up mongo locally and utilizing mongodb atlas for cloud implementation.', 'duration': 86.222, 'highlights': ['The chapter introduces the MongoDB crash course, covering the latest updates including the introduction of Compass and MongoDB Atlas, as well as providing guidance on setting up Mongo locally and utilizing MongoDB Atlas for cloud implementation.', 'Devmountain is mentioned as a sponsor for the video, offering a 12-week design and development boot camp intended to get individuals a full-time position in the industry.']}, {'end': 171.186, 'start': 93.501, 'title': 'Nosql databases: mongodb overview', 'summary': 'Discusses the basics of nosql databases, with a focus on mongodb, highlighting its scalability, built-in replication and sharding, and flexibility, making it popular in the javascript community and suitable for horizontal scaling.', 'duration': 77.685, 'highlights': ['MongoDB is popular in the JavaScript community due to its similarity to JavaScript objects or JSON objects, making it easy for JavaScript developers to pick up.', 'MongoDB offers built-in replication and sharding, making it very scalable and suitable for horizontal scaling by adding cheap machines to the cluster.', 'The data structure of MongoDB is flexible, similar to a JavaScript object, allowing for easy data manipulation and representation.']}, {'end': 219.977, 'start': 171.986, 'title': 'Mongodb flexibility and use cases', 'summary': 'Discusses the flexibility of mongodb in structuring data without predefined schemas, contrasting it with relational databases like mysql, and emphasizes its suitability for specific use cases.', 'duration': 47.991, 'highlights': ['MongoDB allows freedom in structuring data without predefined schemas, unlike relational databases like MySQL, offering flexibility in data modeling.', 'The speaker points out that MongoDB is not necessarily better than relational databases but is more suitable for specific use cases and projects.', 'Contrasting MongoDB with relational databases, the speaker explains the freedom to structure data through the application, highlighting its appeal.']}], 'duration': 212.918, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ7059.jpg', 'highlights': ['The data structure of MongoDB is flexible, similar to a JavaScript object, allowing for easy data manipulation and representation.', 'MongoDB offers built-in replication and sharding, making it very scalable and suitable for horizontal scaling by adding cheap machines to the cluster.', 'MongoDB allows freedom in structuring data without predefined schemas, unlike relational databases like MySQL, offering flexibility in data modeling.', 'MongoDB is popular in the JavaScript community due to its similarity to JavaScript objects or JSON objects, making it easy for JavaScript developers to pick up.', 'The chapter introduces the MongoDB crash course, covering the latest updates including the introduction of Compass and MongoDB Atlas, as well as providing guidance on setting up Mongo locally and utilizing MongoDB Atlas for cloud implementation.']}, {'end': 450.569, 'segs': [{'end': 263.536, 'src': 'embed', 'start': 219.977, 'weight': 0, 'content': [{'end': 222.219, 'text': "let's jump in and get started now.", 'start': 219.977, 'duration': 2.242}, {'end': 224.021, 'text': "if you're on window, obviously i'm on mac.", 'start': 222.219, 'duration': 1.802}, {'end': 230.086, 'text': "so if you're on windows, i just want to kind of explain to you how to get a local installation set up.", 'start': 224.021, 'duration': 6.065}, {'end': 231.768, 'text': 'so you want to go to products.', 'start': 230.086, 'duration': 1.682}, {'end': 233.41, 'text': 'this is mongodb.com.', 'start': 231.768, 'duration': 1.642}, {'end': 236.993, 'text': 'you want to go to products mongodb server.', 'start': 233.41, 'duration': 3.583}, {'end': 242.278, 'text': 'download the latest release, uh, server right here, and then go ahead and download the file.', 'start': 236.993, 'duration': 5.285}, {'end': 243.94, 'text': "i believe it's an msi file.", 'start': 242.278, 'duration': 1.662}, {'end': 245.261, 'text': "it's just an installer.", 'start': 243.94, 'duration': 1.321}, {'end': 246.563, 'text': 'you just go through.', 'start': 245.261, 'duration': 1.302}, {'end': 247.624, 'text': 'you can set it.', 'start': 246.563, 'duration': 1.061}, {'end': 250.627, 'text': 'so that mongodb is as it runs as a service.', 'start': 247.624, 'duration': 3.003}, {'end': 251.828, 'text': "so it'll run in the background.", 'start': 250.627, 'duration': 1.201}, {'end': 256.048, 'text': "It'll also come with Compass, which is a graphical tool.", 'start': 252.406, 'duration': 3.642}, {'end': 263.536, 'text': 'And if you want to run the Mongo shell, you simply go to the MongoDB location, which is going to be in your program files.', 'start': 256.649, 'duration': 6.887}], 'summary': 'To set up mongodb on windows, download and install the latest release from mongodb.com, including compass for graphical use.', 'duration': 43.559, 'max_score': 219.977, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ219977.jpg'}, {'end': 338.315, 'src': 'embed', 'start': 307.863, 'weight': 3, 'content': [{'end': 310.372, 'text': 'once homebrew is installed, This page right here.', 'start': 307.863, 'duration': 2.509}, {'end': 315.356, 'text': "I'll try to remember to put this in the description, but you just need to run basically three commands to get set up.", 'start': 310.372, 'duration': 4.984}, {'end': 319.619, 'text': 'This right here, brew, tap, MongoDB slash brew.', 'start': 315.436, 'duration': 4.183}, {'end': 324.263, 'text': 'Then we install the MongoDB community version.', 'start': 320.2, 'duration': 4.063}, {'end': 331.429, 'text': 'And then you can either run it just right from the terminal or you can run it as a service, which is what I would recommend.', 'start': 324.984, 'duration': 6.445}, {'end': 332.93, 'text': 'So you run this command right here.', 'start': 331.489, 'duration': 1.441}, {'end': 334.992, 'text': 'And then finally, just run Mongo.', 'start': 333.471, 'duration': 1.521}, {'end': 338.315, 'text': 'You can run it from anywhere and it should open up your shell.', 'start': 335.212, 'duration': 3.103}], 'summary': "To set up mongodb using homebrew, run three commands: 'brew tap mongodb/brew', install mongodb community version, and then run 'mongo'.", 'duration': 30.452, 'max_score': 307.863, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ307863.jpg'}, {'end': 442.763, 'src': 'heatmap', 'start': 351.449, 'weight': 2, 'content': [{'end': 355.993, 'text': 'now, before we start to work within the shell, i want to show you compass real quick.', 'start': 351.449, 'duration': 4.544}, {'end': 358.235, 'text': "so i'm going to open compass.", 'start': 355.993, 'duration': 2.242}, {'end': 360.037, 'text': 'oh, and i should show you how to install it.', 'start': 358.235, 'duration': 1.802}, {'end': 365.951, 'text': "so if you go to products, So if you use homebrew, it doesn't install compass.", 'start': 360.037, 'duration': 5.914}, {'end': 369.193, 'text': 'You just have to go to products, MongoDB compass.', 'start': 365.971, 'duration': 3.222}, {'end': 372.574, 'text': 'Try now and just go ahead and download and install it.', 'start': 369.653, 'duration': 2.921}, {'end': 374.055, 'text': 'And that will set it up.', 'start': 372.755, 'duration': 1.3}, {'end': 375.036, 'text': 'All right.', 'start': 374.716, 'duration': 0.32}, {'end': 379.999, 'text': 'So once you run compass, you can just leave all this stuff.', 'start': 375.176, 'duration': 4.823}, {'end': 385.062, 'text': 'So local host, the default port for Mongo is 27017.', 'start': 380.019, 'duration': 5.043}, {'end': 390.665, 'text': "We'll click connect and you're going to see these three default databases, admin, config and local.", 'start': 385.062, 'duration': 5.603}, {'end': 393.426, 'text': "And with Compass, I mean, it's just a GUI.", 'start': 391.185, 'duration': 2.241}, {'end': 398.508, 'text': "You can create a new database, like let's say Test 1.", 'start': 393.466, 'duration': 5.042}, {'end': 400.509, 'text': 'And we can actually create a collection as well.', 'start': 398.508, 'duration': 2.001}, {'end': 402.51, 'text': 'A collection is similar to a table.', 'start': 400.549, 'duration': 1.961}, {'end': 404.551, 'text': 'It just holds documents of data.', 'start': 402.61, 'duration': 1.941}, {'end': 412.614, 'text': "So for instance, if we add maybe products and create database, you can see we've created Test 1.", 'start': 404.611, 'duration': 8.003}, {'end': 415.275, 'text': 'If we go in here, we can create other collections.', 'start': 412.614, 'duration': 2.661}, {'end': 417.536, 'text': 'We can also go into the products collection.', 'start': 415.315, 'duration': 2.221}, {'end': 419.297, 'text': 'We can insert a document.', 'start': 418.036, 'duration': 1.261}, {'end': 425.599, 'text': 'So all documents are going to have this underscore ID field in MongoDB, which is an object ID.', 'start': 419.818, 'duration': 5.781}, {'end': 428.2, 'text': 'This is a unique identifier.', 'start': 426.499, 'duration': 1.701}, {'end': 431.44, 'text': "It's kind of like having a primary key in a relational database.", 'start': 428.28, 'duration': 3.16}, {'end': 434.621, 'text': "So it'll have that automatically.", 'start': 432.341, 'duration': 2.28}, {'end': 442.763, 'text': "And we could go ahead and create like, I don't know, a name and say like test.", 'start': 435.041, 'duration': 7.722}], 'summary': 'Compass is a gui tool for mongodb; it allows creating databases and collections.', 'duration': 51.061, 'max_score': 351.449, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ351449.jpg'}], 'start': 219.977, 'title': 'Mongodb installation and usage', 'summary': 'Provides a guide for setting up a local mongodb installation on windows, including downloading, service setup, and accessing the mongo shell. it also covers mongodb and compass installation using homebrew on mac, with instructions for setting up mongodb, starting the shell, and navigating mongodb compass for database and collection creation.', 'chapters': [{'end': 285.912, 'start': 219.977, 'title': 'Setting up local mongodb on windows', 'summary': 'Explains how to set up a local mongodb installation on windows, including downloading the latest release, setting it to run as a service, and accessing the mongo shell.', 'duration': 65.935, 'highlights': ['To set up a local MongoDB installation on Windows, go to the MongoDB website, download the latest release, and run the installer, which also includes Compass, a graphical tool.', "The installation process allows MongoDB to run as a service in the background, and accessing the Mongo shell is done by navigating to the MongoDB location in the program files and running the 'mongo' command in the command prompt."]}, {'end': 450.569, 'start': 285.912, 'title': 'Installing and using mongodb with compass', 'summary': 'Covers the installation of mongodb and compass using homebrew on mac, including running commands to set up mongodb, starting the mongodb shell, and navigating mongodb compass to create databases and collections.', 'duration': 164.657, 'highlights': ['MongoDB and Compass installation using Homebrew on Mac The tutorial focuses on using Homebrew to install MongoDB and Compass on Mac, providing an easier alternative to manually moving binaries to the bin folder.', 'Setting up MongoDB using three commands The chapter emphasizes the use of three commands to set up MongoDB after installing Homebrew, highlighting the simplicity and efficiency of the process.', 'Navigating MongoDB Compass to create databases and collections The tutorial demonstrates using MongoDB Compass to create databases and collections, showcasing the process of inserting documents and understanding the structure of MongoDB data.']}], 'duration': 230.592, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ219977.jpg', 'highlights': ["The installation process allows MongoDB to run as a service in the background, and accessing the Mongo shell is done by navigating to the MongoDB location in the program files and running the 'mongo' command in the command prompt.", 'To set up a local MongoDB installation on Windows, go to the MongoDB website, download the latest release, and run the installer, which also includes Compass, a graphical tool.', 'The tutorial focuses on using Homebrew to install MongoDB and Compass on Mac, providing an easier alternative to manually moving binaries to the bin folder.', 'Setting up MongoDB using three commands The chapter emphasizes the use of three commands to set up MongoDB after installing Homebrew, highlighting the simplicity and efficiency of the process.', 'Navigating MongoDB Compass to create databases and collections The tutorial demonstrates using MongoDB Compass to create databases and collections, showcasing the process of inserting documents and understanding the structure of MongoDB data.']}, {'end': 707.664, 'segs': [{'end': 537.041, 'src': 'embed', 'start': 450.629, 'weight': 0, 'content': [{'end': 457.633, 'text': "I think it's good to kind of manage your database a little bit, but you really want to get comfortable with the shell and with the commands,", 'start': 450.629, 'duration': 7.004}, {'end': 460.294, 'text': 'the different methods to work with documents.', 'start': 457.633, 'duration': 2.661}, {'end': 461.175, 'text': "And that's what we're going to do.", 'start': 460.374, 'duration': 0.801}, {'end': 466.7, 'text': "So I'm going to go ahead and close up Compass and go back into my Mongo shell here.", 'start': 461.915, 'duration': 4.785}, {'end': 469.803, 'text': "And first thing I'm going to do is say show DBs.", 'start': 467.4, 'duration': 2.403}, {'end': 476.549, 'text': "And, by the way, I'll have a file, a link to a Markdown file in the description,", 'start': 470.303, 'duration': 6.246}, {'end': 479.732, 'text': "which will be a cheat sheet with all the different commands that I'm going to show you.", 'start': 476.549, 'duration': 3.183}, {'end': 482.915, 'text': 'And you can keep that for reference for future use.', 'start': 480.073, 'duration': 2.842}, {'end': 488.558, 'text': 'so if i do show dbs, you can see the test one database that we just created.', 'start': 483.616, 'duration': 4.942}, {'end': 498.962, 'text': "if i want to use that, i simply say use test one and now i'm in that database and i can say show collections and we have a products collection.", 'start': 488.558, 'duration': 10.404}, {'end': 502.703, 'text': "now i'm going to actually create a new database from the shell.", 'start': 498.962, 'duration': 3.741}, {'end': 503.263, 'text': 'so i want to.', 'start': 502.703, 'duration': 0.56}, {'end': 504.784, 'text': 'i want to delete test one.', 'start': 503.263, 'duration': 1.521}, {'end': 512.573, 'text': 'so to drop a database, you just simply need to use it and then do db.drop database like that.', 'start': 504.784, 'duration': 7.789}, {'end': 521.417, 'text': "OK, so now if I say show DBS space there, you'll see that it's gone now to create a brand new database.", 'start': 513.134, 'duration': 8.283}, {'end': 527.818, 'text': "We simply say use I'll just call this Acme and that created the Acme database and switch to it.", 'start': 521.437, 'duration': 6.381}, {'end': 529.599, 'text': 'Now, I want to show you something.', 'start': 528.339, 'duration': 1.26}, {'end': 532.82, 'text': "If I do show DBS, it doesn't show the Acme database.", 'start': 529.619, 'duration': 3.201}, {'end': 534.4, 'text': "And that's because there's nothing in it.", 'start': 532.86, 'duration': 1.54}, {'end': 535.961, 'text': "There's no collections or anything.", 'start': 534.44, 'duration': 1.521}, {'end': 537.041, 'text': "So it doesn't show up.", 'start': 536.041, 'duration': 1}], 'summary': 'Learn shell commands, manage databases, create and delete databases, and work with collections in mongodb.', 'duration': 86.412, 'max_score': 450.629, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ450629.jpg'}, {'end': 641.081, 'src': 'embed', 'start': 614.979, 'weight': 4, 'content': [{'end': 625.345, 'text': "So category, we'll say news, we can do a date and in Mongo we can just say date like this and it will put in the current date and time.", 'start': 614.979, 'duration': 10.366}, {'end': 626.606, 'text': 'All right.', 'start': 625.365, 'duration': 1.241}, {'end': 631.618, 'text': "Let's see, I guess we could put some other stuff here.", 'start': 629.898, 'duration': 1.72}, {'end': 632.759, 'text': 'So we just have strings.', 'start': 631.698, 'duration': 1.061}, {'end': 633.319, 'text': 'We have a date.', 'start': 632.779, 'duration': 0.54}, {'end': 635.399, 'text': 'We can put something with a number.', 'start': 633.359, 'duration': 2.04}, {'end': 637.72, 'text': "So let's say like likes.", 'start': 635.579, 'duration': 2.141}, {'end': 639.981, 'text': 'Maybe each post has a certain amount of likes.', 'start': 637.88, 'duration': 2.101}, {'end': 641.081, 'text': "We'll just say four.", 'start': 640.161, 'duration': 0.92}], 'summary': 'Discussion on categorizing news, storing dates, and tracking likes with a specific example of four likes per post.', 'duration': 26.102, 'max_score': 614.979, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ614979.jpg'}], 'start': 450.629, 'title': 'Managing and working with mongodb', 'summary': "Covers managing mongodb databases by demonstrating the 'show dbs' command and providing a cheat sheet, and also includes working with mongodb shell for creating, switching, and manipulating databases and collections, with a focus on creating new databases, checking the current database, creating collections, inserting data, and using various data types.", 'chapters': [{'end': 488.558, 'start': 450.629, 'title': 'Managing mongodb databases', 'summary': "Emphasizes the importance of getting comfortable with using the shell and commands for managing mongodb databases, with a focus on demonstrating the 'show dbs' command and providing a cheat sheet for reference.", 'duration': 37.929, 'highlights': ['The chapter stresses the importance of getting comfortable with the shell and commands for managing MongoDB databases.', "Emphasizes the demonstration of the 'show DBs' command for viewing existing databases.", 'Provides a cheat sheet in the description with all the different commands for future reference.']}, {'end': 707.664, 'start': 488.558, 'title': 'Working with mongodb shell', 'summary': 'Covers creating, switching, and manipulating databases and collections in mongodb using the shell, including creating a new database, checking the current database, creating collections, inserting data, and using various data types.', 'duration': 219.106, 'highlights': ['Creating a new database and switching to it The chapter demonstrates creating a new database called Acme and switching to it, showing the process of creating and switching to a new database.', "Creating a collection and inserting data The process of creating a collection called 'posts' and inserting a document into it is shown, with an example of inserting data with different data types like strings, dates, numbers, arrays, and embedded objects.", "Deleting a database The method of deleting a database called 'test one' is demonstrated, showing how to drop a database using the db.dropDatabase() command.", "Checking the current database The chapter explains how to check the current database by using the command 'db', and it's demonstrated that the Acme database does not show up when it's empty."]}], 'duration': 257.035, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ450629.jpg', 'highlights': ['The chapter stresses the importance of getting comfortable with the shell and commands for managing MongoDB databases.', "Emphasizes the demonstration of the 'show DBs' command for viewing existing databases.", 'Provides a cheat sheet in the description with all the different commands for future reference.', 'Creating a new database called Acme and switching to it, showing the process of creating and switching to a new database.', "Creating a collection called 'posts' and inserting a document into it is shown, with an example of inserting data with different data types like strings, dates, numbers, arrays, and embedded objects.", "The method of deleting a database called 'test one' is demonstrated, showing how to drop a database using the db.dropDatabase() command.", "The chapter explains how to check the current database by using the command 'db', and it's demonstrated that the Acme database does not show up when it's empty."]}, {'end': 1177.562, 'segs': [{'end': 735.075, 'src': 'embed', 'start': 707.704, 'weight': 0, 'content': [{'end': 710.905, 'text': "Again, I'm going to have the file in the description that has all this stuff.", 'start': 707.704, 'duration': 3.201}, {'end': 716.008, 'text': 'But we can do DB dot post insert many and just pass in an array of posts.', 'start': 711.566, 'duration': 4.442}, {'end': 722.17, 'text': "Now, notice that these don't have like likes and tags and user and that's absolutely fine.", 'start': 716.088, 'duration': 6.082}, {'end': 727.292, 'text': "Unlike relational databases, we don't have that strict data model that we have to follow.", 'start': 722.27, 'duration': 5.022}, {'end': 733.995, 'text': 'We can put absolutely anything we want in any document, which is which is, you know, I think is really good.', 'start': 727.332, 'duration': 6.663}, {'end': 735.075, 'text': "It's really cool.", 'start': 734.375, 'duration': 0.7}], 'summary': 'Using db dot post insert many, we can add an array of posts in mongodb without strict data model constraints.', 'duration': 27.371, 'max_score': 707.704, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ707704.jpg'}, {'end': 927.973, 'src': 'embed', 'start': 780.027, 'weight': 1, 'content': [{'end': 789.813, 'text': "So let's see, if we want to narrow it down, maybe we want only the news categories, we could do db.post.find.", 'start': 780.027, 'duration': 9.786}, {'end': 794.115, 'text': 'And this is similar to like a where clause in SQL.', 'start': 790.373, 'duration': 3.742}, {'end': 803.9, 'text': "So if we want to find where category is equal to news, and now you'll see we get just the two.", 'start': 794.535, 'duration': 9.365}, {'end': 808.403, 'text': 'And we can also tack on pretty here if we want to make it more readable.', 'start': 804.401, 'duration': 4.002}, {'end': 811.92, 'text': "So that's how we can kind of narrow things down.", 'start': 809.799, 'duration': 2.121}, {'end': 813.42, 'text': 'We can also sort.', 'start': 812.4, 'duration': 1.02}, {'end': 820.082, 'text': "So if I do, let's do a find and right here we'll do dot sort.", 'start': 813.94, 'duration': 6.142}, {'end': 821.523, 'text': 'So we have a sort method.', 'start': 820.102, 'duration': 1.421}, {'end': 827.064, 'text': "And then here we can put the field we want to sort by, let's say title.", 'start': 822.083, 'duration': 4.981}, {'end': 831.686, 'text': 'And then we can either put one for ascending or negative one for descending.', 'start': 827.205, 'duration': 4.481}, {'end': 837.28, 'text': "And if I run that, you'll see that now we have, let's see, post fours first.", 'start': 832.355, 'duration': 4.925}, {'end': 839.562, 'text': "So it's in alphabetical order for the title.", 'start': 837.48, 'duration': 2.082}, {'end': 842.565, 'text': 'Post four, post one, three, and two.', 'start': 840.143, 'duration': 2.422}, {'end': 843.826, 'text': "So that's how we can sort.", 'start': 842.745, 'duration': 1.081}, {'end': 853.115, 'text': "Okay, if we want to count how many documents we have, we could do, let's count how many news categories.", 'start': 843.846, 'duration': 9.269}, {'end': 855.698, 'text': 'So we can just do .count like that.', 'start': 853.175, 'duration': 2.523}, {'end': 856.578, 'text': 'You can see we get two.', 'start': 855.818, 'duration': 0.76}, {'end': 862.964, 'text': 'OK, so we can use the count method if we want to limit our records.', 'start': 858.36, 'duration': 4.604}, {'end': 864.105, 'text': 'We can do that as well.', 'start': 863.004, 'duration': 1.101}, {'end': 869.831, 'text': "Let's just let's get rid of this and let's say dot.", 'start': 864.145, 'duration': 5.686}, {'end': 873.314, 'text': "So find limit and we'll limit to two.", 'start': 870.271, 'duration': 3.043}, {'end': 876.457, 'text': 'And you can see we get just two records back.', 'start': 874.174, 'duration': 2.283}, {'end': 880.56, 'text': 'We can chain on to if we wanted to sort and limit.', 'start': 877.397, 'duration': 3.163}, {'end': 881.341, 'text': 'We could do that.', 'start': 880.66, 'duration': 0.681}, {'end': 882.842, 'text': 'So we could say like sort.', 'start': 881.421, 'duration': 1.421}, {'end': 890.002, 'text': 'sort by title, say negative one, to do descending.', 'start': 884.779, 'duration': 5.223}, {'end': 894.384, 'text': 'so you can see, we can just chain things on, just like javascript.', 'start': 890.002, 'duration': 4.382}, {'end': 896.345, 'text': "uh, let's see, we can also use for each.", 'start': 894.384, 'duration': 1.961}, {'end': 900.787, 'text': 'so if we want to maybe print something out for each, uh, each post, we can do that.', 'start': 896.345, 'duration': 4.442}, {'end': 916.046, 'text': "so db.post.for each, and i'm sorry, it's find For each, and this actually takes in a function and we can put whatever we want here.", 'start': 900.787, 'duration': 15.259}, {'end': 927.973, 'text': "I'll just say doc, and So let's say in here we want to do print, We'll say print and we'll say blog post, colon,", 'start': 916.066, 'duration': 11.907}], 'summary': 'Using mongodb commands, such as find, sort, count, limit, and for each, to manipulate and analyze data in a collection.', 'duration': 147.946, 'max_score': 780.027, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ780027.jpg'}, {'end': 1044.31, 'src': 'embed', 'start': 1014.633, 'weight': 8, 'content': [{'end': 1017.675, 'text': "And then the next parameter, I'm just going to go on to the next line here.", 'start': 1014.633, 'duration': 3.042}, {'end': 1021.776, 'text': "We're going to specify what we want to update it with.", 'start': 1017.695, 'duration': 4.081}, {'end': 1026.965, 'text': "So let's say title post 2.", 'start': 1021.856, 'duration': 5.109}, {'end': 1031.752, 'text': "Let's say body and I'll just say new post to body.", 'start': 1026.965, 'duration': 4.787}, {'end': 1042.286, 'text': "And then let's do let's actually leave out the category just so I can show you this will replace everything and we'll just put the date.", 'start': 1033.194, 'duration': 9.092}, {'end': 1044.31, 'text': 'All right.', 'start': 1043.991, 'duration': 0.319}], 'summary': 'Updating parameters for title and body of post 2, leaving out category.', 'duration': 29.677, 'max_score': 1014.633, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1014633.jpg'}], 'start': 707.704, 'title': 'Mongodb query and manipulation', 'summary': "Covers mongodb's flexibility in data modeling and manipulation, including inserting many posts at once, querying data with filters and sorting, and using methods like count, limit, and chaining operations. it also highlights the ability to store any data in documents and the use of pretty method for readability.", 'chapters': [{'end': 896.345, 'start': 707.704, 'title': 'Mongodb query and manipulation', 'summary': "Covers mongodb's flexibility in data modeling and manipulation, including inserting many posts at once, querying data with filters and sorting, and using methods like count, limit, and chaining operations. it also highlights the ability to store any data in documents and the use of pretty method for readability.", 'duration': 188.641, 'highlights': ['MongoDB allows inserting many posts at once using DB dot post insert many, providing flexibility and efficiency in data insertion.', 'Querying data in MongoDB involves methods like find, where clause, and pretty for better readability, enhancing the ease of data retrieval and analysis.', 'Sorting data in MongoDB can be achieved using the sort method, providing the flexibility to arrange data in ascending or descending order based on specific fields.', 'The count method in MongoDB enables the easy and efficient counting of documents based on specified criteria, enhancing data analysis and management.', 'Limiting the number of records in a MongoDB query is feasible using the find limit method, offering control over the volume of retrieved data for improved efficiency and performance.', 'Chaining operations in MongoDB, similar to JavaScript, allows the sequential application of multiple methods like sort and limit, enhancing the flexibility and customization of data retrieval and manipulation.']}, {'end': 1177.562, 'start': 896.345, 'title': 'Manipulating data in mongodb', 'summary': 'Demonstrates how to print each post, find specific rows, and update entries in mongodb, using functions such as foreach, find, findone, update, and set.', 'duration': 281.217, 'highlights': ["The chapter explains how to print each post in MongoDB using the forEach function, with the example showing the concatenation of 'blog post' with each title and the ability to print each title.", "It further discusses finding a specific row in MongoDB, showcasing the use of the find and findOne functions, with an example of finding a row with the category 'news' and updating it using the update function.", 'It also illustrates updating entries in MongoDB, demonstrating the use of the update function to replace an entire entry and the set operator to selectively update or add fields, such as updating the body of a post and adding a new category.']}], 'duration': 469.858, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ707704.jpg', 'highlights': ['MongoDB allows inserting many posts at once using DB dot post insert many, providing flexibility and efficiency in data insertion.', 'Querying data in MongoDB involves methods like find, where clause, and pretty for better readability, enhancing the ease of data retrieval and analysis.', 'Sorting data in MongoDB can be achieved using the sort method, providing the flexibility to arrange data in ascending or descending order based on specific fields.', 'The count method in MongoDB enables the easy and efficient counting of documents based on specified criteria, enhancing data analysis and management.', 'Limiting the number of records in a MongoDB query is feasible using the find limit method, offering control over the volume of retrieved data for improved efficiency and performance.', 'Chaining operations in MongoDB, similar to JavaScript, allows the sequential application of multiple methods like sort and limit, enhancing the flexibility and customization of data retrieval and manipulation.', "The chapter explains how to print each post in MongoDB using the forEach function, with the example showing the concatenation of 'blog post' with each title and the ability to print each title.", "It further discusses finding a specific row in MongoDB, showcasing the use of the find and findOne functions, with an example of finding a row with the category 'news' and updating it using the update function.", 'It also illustrates updating entries in MongoDB, demonstrating the use of the update function to replace an entire entry and the set operator to selectively update or add fields, such as updating the body of a post and adding a new category.']}, {'end': 1918.735, 'segs': [{'end': 1208.356, 'src': 'embed', 'start': 1177.742, 'weight': 5, 'content': [{'end': 1185.027, 'text': "So you for the most part, you want to use this set operator when you're updating, at least with the standard driver here.", 'start': 1177.742, 'duration': 7.285}, {'end': 1190.682, 'text': 'All right, so we also have some other operators like increment.', 'start': 1186.078, 'duration': 4.604}, {'end': 1196.066, 'text': 'So we have the likes property for post one.', 'start': 1191.843, 'duration': 4.223}, {'end': 1197.567, 'text': "Let's say we want to increment that.", 'start': 1196.126, 'duration': 1.441}, {'end': 1201.55, 'text': "Right now we have, let's see, let's look at post one.", 'start': 1198.188, 'duration': 3.362}, {'end': 1206.134, 'text': 'So post one likes is four.', 'start': 1203.892, 'duration': 2.242}, {'end': 1208.356, 'text': "Let's say we want to increment that by two.", 'start': 1206.194, 'duration': 2.162}], 'summary': 'Use the set operator for updating with the standard driver; increment likes by two for post one.', 'duration': 30.614, 'max_score': 1177.742, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1177742.jpg'}, {'end': 1296.502, 'src': 'embed', 'start': 1242.273, 'weight': 6, 'content': [{'end': 1244.075, 'text': 'OK, so just another operator.', 'start': 1242.273, 'duration': 1.802}, {'end': 1245.996, 'text': 'We also have the rename operator.', 'start': 1244.135, 'duration': 1.861}, {'end': 1252.342, 'text': "So if we want to rename a field, let's say we want to rename likes to views so we could do.", 'start': 1246.036, 'duration': 6.306}, {'end': 1258.967, 'text': "Let's see, we'll grab post one and instead of ink, we're going to say rename.", 'start': 1253.663, 'duration': 5.304}, {'end': 1262.67, 'text': "And let's rename the ups.", 'start': 1260.489, 'duration': 2.181}, {'end': 1264.512, 'text': 'Actually, I wanted to leave that likes.', 'start': 1262.73, 'duration': 1.782}, {'end': 1266.374, 'text': "Let's rename that to.", 'start': 1265.213, 'duration': 1.161}, {'end': 1277.22, 'text': "views. and now, if we take a look, you'll see that likes is now views all right.", 'start': 1268.154, 'duration': 9.066}, {'end': 1279.361, 'text': "so now let's take a look at deleting.", 'start': 1277.22, 'duration': 2.141}, {'end': 1281.943, 'text': 'so we have what four posts right now.', 'start': 1279.361, 'duration': 2.582}, {'end': 1284.264, 'text': "let's say we want to delete.", 'start': 1281.943, 'duration': 2.321}, {'end': 1286.986, 'text': 'uh, actually, let me do a.', 'start': 1284.264, 'duration': 2.722}, {'end': 1288.207, 'text': "let's do a find here.", 'start': 1286.986, 'duration': 1.221}, {'end': 1294.08, 'text': 'So find with no parameters will give us all of our posts.', 'start': 1291.058, 'duration': 3.022}, {'end': 1296.502, 'text': "So let's say we want to delete post for now.", 'start': 1294.481, 'duration': 2.021}], 'summary': 'Demonstration of using operators like rename and delete in a data manipulation process.', 'duration': 54.229, 'max_score': 1242.273, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1242273.jpg'}, {'end': 1362.119, 'src': 'embed', 'start': 1332.417, 'weight': 4, 'content': [{'end': 1335.398, 'text': "Let's say we have we have blog posts and we want some comments.", 'start': 1332.417, 'duration': 2.981}, {'end': 1338.719, 'text': 'Usually what we would do is have a separate table for comments.', 'start': 1335.498, 'duration': 3.221}, {'end': 1343.961, 'text': "We'd have to create a foreign key that links to a primary key on the other table.", 'start': 1339.199, 'duration': 4.762}, {'end': 1350.41, 'text': 'Well, with Mongo, we can simply embed the comments right inside of the post collection.', 'start': 1344.485, 'duration': 5.925}, {'end': 1352.572, 'text': "And that's just one way to do it.", 'start': 1351.491, 'duration': 1.081}, {'end': 1358.937, 'text': 'Of course, you can have a separate collection for comments if you want, but this makes it easier in a lot of cases.', 'start': 1352.612, 'duration': 6.325}, {'end': 1362.119, 'text': "So I'm going to go into Sublime here.", 'start': 1359.597, 'duration': 2.522}], 'summary': 'In mongodb, comments can be embedded within post collection, simplifying data management.', 'duration': 29.702, 'max_score': 1332.417, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1332417.jpg'}, {'end': 1466.675, 'src': 'embed', 'start': 1435.912, 'weight': 3, 'content': [{'end': 1444.699, 'text': "So when we query this, when we're within our application, we can simply do post.comments or whatever, and we can get the comments.", 'start': 1435.912, 'duration': 8.787}, {'end': 1447.701, 'text': "And there's no complicated joins and stuff like that.", 'start': 1445.159, 'duration': 2.542}, {'end': 1452.689, 'text': "Let's say we wanted to find a post by.", 'start': 1449.208, 'duration': 3.481}, {'end': 1463.113, 'text': 'Maybe we want all the posts that have the comment with this with Mary Williams we can use an operator called Ella match.', 'start': 1452.689, 'duration': 10.424}, {'end': 1466.675, 'text': 'So to do that, let me just do it over here.', 'start': 1463.113, 'duration': 3.562}], 'summary': 'Querying application data for post comments without complicated joins, using the operator ella match.', 'duration': 30.763, 'max_score': 1435.912, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1435912.jpg'}, {'end': 1544.349, 'src': 'embed', 'start': 1507.04, 'weight': 0, 'content': [{'end': 1509.14, 'text': 'We could add .pretty to that.', 'start': 1507.04, 'duration': 2.1}, {'end': 1512.801, 'text': 'And there we go.', 'start': 1512.341, 'duration': 0.46}, {'end': 1513.922, 'text': 'We just get post one.', 'start': 1512.841, 'duration': 1.081}, {'end': 1516.484, 'text': 'All right.', 'start': 1516.104, 'duration': 0.38}, {'end': 1518.846, 'text': "So let's take a look at search.", 'start': 1516.785, 'duration': 2.061}, {'end': 1522.809, 'text': 'If we want to do a text search, we can actually add indexes.', 'start': 1519.467, 'duration': 3.342}, {'end': 1529.234, 'text': 'So to add an index, we can do DB dot post dot create index.', 'start': 1522.969, 'duration': 6.265}, {'end': 1534.358, 'text': "And let's say we want to add a text index to the title.", 'start': 1530.515, 'duration': 3.843}, {'end': 1535.819, 'text': 'We want to search by the title.', 'start': 1534.398, 'duration': 1.421}, {'end': 1537.641, 'text': "So we'll say title text.", 'start': 1536.26, 'duration': 1.381}, {'end': 1544.349, 'text': 'So now we have an index on the title field.', 'start': 1538.986, 'duration': 5.363}], 'summary': 'Adding a text index to the title field for search functionality.', 'duration': 37.309, 'max_score': 1507.04, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1507040.jpg'}, {'end': 1762.283, 'src': 'embed', 'start': 1730.315, 'weight': 2, 'content': [{'end': 1732.456, 'text': "But that's I mean, all this stuff is in the documentation.", 'start': 1730.315, 'duration': 2.141}, {'end': 1739.737, 'text': 'I just wanted to give you the basics of, you know, CRUD, create, read, update, delete, and then some of the operators that you can use.', 'start': 1732.476, 'duration': 7.261}, {'end': 1745.139, 'text': "OK, so now that we've done that and to get out of this, we can just do exit.", 'start': 1740.638, 'duration': 4.501}, {'end': 1746.359, 'text': "That'll get us out of the shell.", 'start': 1745.179, 'duration': 1.18}, {'end': 1749.615, 'text': "But let's go ahead and take a look at Atlas now.", 'start': 1747.473, 'duration': 2.142}, {'end': 1751.836, 'text': "So I'm going to jump into.", 'start': 1750.015, 'duration': 1.821}, {'end': 1762.283, 'text': "well, actually, before we do that, let's take a look at Compass, because I just want to show you that it'll show us everything we just did,", 'start': 1751.836, 'duration': 10.447}], 'summary': 'Basic overview of crud operations and using compass for documentation.', 'duration': 31.968, 'max_score': 1730.315, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1730315.jpg'}, {'end': 1820.205, 'src': 'embed', 'start': 1797.499, 'weight': 1, 'content': [{'end': 1808.301, 'text': "you know the shell and the syntax, because When you're using MongoDB within your web app or mobile app, or whatever it is, you're using your API,", 'start': 1797.499, 'duration': 10.802}, {'end': 1812.762, 'text': "you're going to need to be familiar with the finds and updates and all that stuff.", 'start': 1808.301, 'duration': 4.461}, {'end': 1815.103, 'text': "All right, so I'm going to close that up.", 'start': 1812.782, 'duration': 2.321}, {'end': 1817.404, 'text': "And let's jump into Atlas.", 'start': 1815.363, 'duration': 2.041}, {'end': 1820.205, 'text': "Now, you're going to have to create an account if you want to use Atlas.", 'start': 1817.524, 'duration': 2.681}], 'summary': 'Learn mongodb syntax for web/mobile apps. sign up for atlas to use it.', 'duration': 22.706, 'max_score': 1797.499, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1797499.jpg'}], 'start': 1177.742, 'title': 'Mongodb operations & setup', 'summary': 'Covers mongodb update operators for incrementing likes, renaming fields, and deleting posts, along with embedding comments, using $elemmatch, creating text indexes, and performing crud operations. it also includes setting up a cluster using mongodb atlas.', 'chapters': [{'end': 1332.397, 'start': 1177.742, 'title': 'Mongodb update operators', 'summary': 'Introduces various update operators in mongodb, including incrementing likes by two, renaming a field from likes to views, and deleting a post by title, demonstrating the use and effect of each operator.', 'duration': 154.655, 'highlights': ['The increment operator is demonstrated by updating the likes property of post one, increasing it from 4 to 6.', 'The rename operator is illustrated by changing the field name from likes to views for post one.', 'The chapter also showcases the deletion of a post by its title, resulting in the removal of post four from the database.']}, {'end': 1918.735, 'start': 1332.417, 'title': 'Mongodb basics & atlas setup', 'summary': 'Covers embedding comments in a mongodb collection, utilizing operators such as $elemmatch, creating text indexes for search, and performing crud operations. it also demonstrates the initial steps for setting up a cluster using mongodb atlas.', 'duration': 586.318, 'highlights': ['Embedding comments in a MongoDB collection Demonstrates how to embed comments directly within a post collection in MongoDB, simplifying data management and avoiding the need for complex joins.', 'Utilizing the $elemMatch operator for querying Shows the use of the $elemMatch operator to query posts having specific comments, providing a clear example of how to retrieve relevant data efficiently.', 'Creating text indexes for search Illustrates the process of creating a text index on the title field to enable efficient text searches, enhancing the search functionality of the MongoDB database.', 'Performing CRUD operations and using comparison operators Explains how to perform Create, Read, Update, and Delete operations in MongoDB, including the use of comparison operators like greater than, less than, greater than or equal to, and less than or equal to.', 'Setting up a cluster using MongoDB Atlas Provides an overview of the initial steps for setting up a cluster using MongoDB Atlas, including choosing a provider, selecting a cluster tier, and creating a cluster.']}], 'duration': 740.993, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1177742.jpg', 'highlights': ['Illustrates the process of creating a text index on the title field to enable efficient text searches, enhancing the search functionality of the MongoDB database.', 'Provides an overview of the initial steps for setting up a cluster using MongoDB Atlas, including choosing a provider, selecting a cluster tier, and creating a cluster.', 'Explains how to perform Create, Read, Update, and Delete operations in MongoDB, including the use of comparison operators like greater than, less than, greater than or equal to, and less than or equal to.', 'Shows the use of the $elemMatch operator to query posts having specific comments, providing a clear example of how to retrieve relevant data efficiently.', 'Demonstrates how to embed comments directly within a post collection in MongoDB, simplifying data management and avoiding the need for complex joins.', 'The increment operator is demonstrated by updating the likes property of post one, increasing it from 4 to 6.', 'The rename operator is illustrated by changing the field name from likes to views for post one.', 'The chapter also showcases the deletion of a post by its title, resulting in the removal of post four from the database.']}, {'end': 2201.133, 'segs': [{'end': 1974.833, 'src': 'embed', 'start': 1936.624, 'weight': 0, 'content': [{'end': 1944.31, 'text': 'some options here can be an atlas, admin, read and write to any database, so this user will be able to will have full control.', 'start': 1936.624, 'duration': 7.686}, {'end': 1950.596, 'text': 'you know, read, write, access to all the databases or only read any database.', 'start': 1944.31, 'duration': 6.286}, {'end': 1955.341, 'text': "you can create custom roles, temporary user things like that, but we're just going to stick to this.", 'start': 1950.596, 'duration': 4.745}, {'end': 1956.862, 'text': 'read and write to any database.', 'start': 1955.341, 'duration': 1.521}, {'end': 1966.508, 'text': 'um, next thing you want to do is whitelist your ip address so you go to network access, add ip address and you can add your current ip address.', 'start': 1957.763, 'duration': 8.745}, {'end': 1968.449, 'text': 'it should detect it automatically.', 'start': 1966.508, 'duration': 1.941}, {'end': 1971.771, 'text': 'or you can allow access from anywhere, which obviously is less secure.', 'start': 1968.449, 'duration': 3.322}, {'end': 1974.833, 'text': "i'm going to just go ahead and do that just because i'm going to delete this.", 'start': 1971.771, 'duration': 3.062}], 'summary': 'User can have full control with read and write access to any database. whitelist ip address for access.', 'duration': 38.209, 'max_score': 1936.624, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1936624.jpg'}, {'end': 2058.606, 'src': 'embed', 'start': 2031.551, 'weight': 2, 'content': [{'end': 2035.572, 'text': 'Now, if you want to connect to this database through the shell, we can do that as well.', 'start': 2031.551, 'duration': 4.021}, {'end': 2041.253, 'text': 'So we just click this right here connect with the Mongo shell and just copy this string,', 'start': 2035.712, 'duration': 5.541}, {'end': 2045.774, 'text': 'which is the Mongo command and then basically the database we want to connect to.', 'start': 2041.253, 'duration': 4.521}, {'end': 2047.874, 'text': "So let's try that.", 'start': 2046.374, 'duration': 1.5}, {'end': 2050.215, 'text': "Let's go over here and paste that in.", 'start': 2047.934, 'duration': 2.281}, {'end': 2052.983, 'text': "And let's run that.", 'start': 2052.143, 'duration': 0.84}, {'end': 2056.045, 'text': "And it's going to ask for our password, which is the user I just created.", 'start': 2053.003, 'duration': 3.042}, {'end': 2058.606, 'text': "And now we're connected.", 'start': 2057.685, 'duration': 0.921}], 'summary': 'Connecting to the database via shell using mongo command successfully.', 'duration': 27.055, 'max_score': 2031.551, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ2031551.jpg'}, {'end': 2197.552, 'src': 'embed', 'start': 2117.275, 'weight': 4, 'content': [{'end': 2123.422, 'text': "So obviously we can do everything we do with the local, but let's head over to Atlas and we should be able to see our data.", 'start': 2117.275, 'duration': 6.147}, {'end': 2125.224, 'text': 'So if we hit right here collections,', 'start': 2123.442, 'duration': 1.782}, {'end': 2132.431, 'text': "it's going to retrieve our data and you can see we have an Acme database with a todoes collection and we have one document.", 'start': 2125.224, 'duration': 7.207}, {'end': 2138.694, 'text': 'And we can edit this from here if we want to change it to like to do one update.', 'start': 2133.172, 'duration': 5.522}, {'end': 2144.316, 'text': "And if we go back to our terminal and we do a fine, you can see that that's been updated.", 'start': 2140.154, 'duration': 4.162}, {'end': 2149.077, 'text': "So Atlas is similar to Compass, except it's in the cloud.", 'start': 2144.436, 'duration': 4.641}, {'end': 2150.658, 'text': "It's not on your local machine.", 'start': 2149.117, 'duration': 1.541}, {'end': 2157.58, 'text': 'You can also, you know, insert documents from here.', 'start': 2151.738, 'duration': 5.842}, {'end': 2160.181, 'text': 'So if I say insert document and we say.', 'start': 2157.6, 'duration': 2.581}, {'end': 2169.561, 'text': "text and let's go to say to do two and insert.", 'start': 2161.795, 'duration': 7.766}, {'end': 2173.244, 'text': "So that'll insert that.", 'start': 2171.983, 'duration': 1.261}, {'end': 2177.448, 'text': 'And if we go back to our shell and we do a fine, we should see that to do two.', 'start': 2173.485, 'duration': 3.963}, {'end': 2181.011, 'text': 'OK, and we can just exit out of this if we want.', 'start': 2177.468, 'duration': 3.543}, {'end': 2186.188, 'text': 'So hopefully this gives you guys an idea of how to start using Mongo.', 'start': 2181.986, 'duration': 4.202}, {'end': 2191.129, 'text': 'Obviously, this is just the database part to use it within your application.', 'start': 2187.048, 'duration': 4.081}, {'end': 2195.811, 'text': 'You need to get familiar with the drivers and packages and all that good stuff.', 'start': 2191.169, 'duration': 4.642}, {'end': 2196.731, 'text': 'All right.', 'start': 2196.391, 'duration': 0.34}, {'end': 2197.552, 'text': "So that's it.", 'start': 2196.851, 'duration': 0.701}], 'summary': 'Using atlas for cloud storage, editing documents, and inserting data in mongodb.', 'duration': 80.277, 'max_score': 2117.275, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ2117275.jpg'}], 'start': 1918.775, 'title': 'Database user, access, and mongodb atlas connection', 'summary': "Covers creating a database user 'brad' with full control, custom roles, and temporary user access. it also demonstrates connecting to mongodb atlas, including ip whitelisting, application and shell connections, database and collection management, document manipulation, and cloud database administration.", 'chapters': [{'end': 1956.862, 'start': 1918.775, 'title': 'Creating database user and access', 'summary': "Covers the process of creating a database user 'brad' with full control to read and write to any database, along with options for custom roles and temporary user access.", 'duration': 38.087, 'highlights': ["Creating a database user 'brad' with full control to read and write to any database, providing complete access to all databases.", 'Options for creating custom roles and temporary user access are available, providing flexibility and customization for user permissions.']}, {'end': 2201.133, 'start': 1957.763, 'title': 'Connecting to mongodb atlas', 'summary': 'Demonstrates how to connect to mongodb atlas, including whitelisting ip addresses, connecting through applications and the shell, creating databases and collections, inserting and finding documents, and using atlas to manage the cloud database.', 'duration': 243.37, 'highlights': ['Demonstrating how to connect to MongoDB Atlas through applications and the shell Connecting to MongoDB Atlas involves connecting through applications and the shell, demonstrating how to connect to the cloud database.', 'Whitelisting IP addresses for secure access to MongoDB Atlas Whitelisting IP addresses is recommended for secure access to MongoDB Atlas, although allowing access from anywhere is less secure.', 'Creating databases and collections in MongoDB Atlas and inserting documents Creating databases and collections in MongoDB Atlas and inserting documents are essential actions in utilizing the cloud database.', 'Using MongoDB Atlas to manage the cloud database, including updating documents and inserting documents Utilizing MongoDB Atlas to manage the cloud database involves updating and inserting documents directly from Atlas.', 'The importance of getting familiar with MongoDB drivers and packages for application integration To fully utilize MongoDB in applications, getting familiar with MongoDB drivers and packages is crucial.']}], 'duration': 282.358, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/-56x56UppqQ/pics/-56x56UppqQ1918775.jpg', 'highlights': ["Creating a database user 'brad' with full control to read and write to any database, providing complete access to all databases.", 'Options for creating custom roles and temporary user access are available, providing flexibility and customization for user permissions.', 'Demonstrating how to connect to MongoDB Atlas through applications and the shell Connecting to MongoDB Atlas involves connecting through applications and the shell, demonstrating how to connect to the cloud database.', 'Whitelisting IP addresses for secure access to MongoDB Atlas Whitelisting IP addresses is recommended for secure access to MongoDB Atlas, although allowing access from anywhere is less secure.', 'Creating databases and collections in MongoDB Atlas and inserting documents Creating databases and collections in MongoDB Atlas and inserting documents are essential actions in utilizing the cloud database.', 'Using MongoDB Atlas to manage the cloud database, including updating documents and inserting documents Utilizing MongoDB Atlas to manage the cloud database involves updating and inserting documents directly from Atlas.', 'The importance of getting familiar with MongoDB drivers and packages for application integration To fully utilize MongoDB in applications, getting familiar with MongoDB drivers and packages is crucial.']}], 'highlights': ['MongoDB offers built-in replication and sharding, making it very scalable and suitable for horizontal scaling by adding cheap machines to the cluster.', 'The data structure of MongoDB is flexible, similar to a JavaScript object, allowing for easy data manipulation and representation.', 'MongoDB allows freedom in structuring data without predefined schemas, unlike relational databases like MySQL, offering flexibility in data modeling.', "The installation process allows MongoDB to run as a service in the background, and accessing the Mongo shell is done by navigating to the MongoDB location in the program files and running the 'mongo' command in the command prompt.", 'The tutorial focuses on using Homebrew to install MongoDB and Compass on Mac, providing an easier alternative to manually moving binaries to the bin folder.', 'The chapter stresses the importance of getting comfortable with the shell and commands for managing MongoDB databases.', 'Querying data in MongoDB involves methods like find, where clause, and pretty for better readability, enhancing the ease of data retrieval and analysis.', 'Illustrates the process of creating a text index on the title field to enable efficient text searches, enhancing the search functionality of the MongoDB database.', "Creating a database user 'brad' with full control to read and write to any database, providing complete access to all databases.", 'Options for creating custom roles and temporary user access are available, providing flexibility and customization for user permissions.']}