Learn MongoDB in 24 Hours
By Alex Nordeen
5/5
()
About this ebook
MongoDB gives flexibility in compare to RDBMS. It has features like dynamic schemas, storage for large volume data, scaling database architecture, real-time data reporting, data sharding, and so on. It enables to develop application faster. To address all these features in a concise manner, this e-book is created.
This e-book has explained features of MongoDB, that is important from the point of Big data analytics. It makes clear the confusion over MySQL and NoSQL working pattern. It has accommodated all the topics on MongoDB with examples. It guides you right through setting up MongoDB environment to security requirements. The book is too small, but all important aspect of MongoDB is covered. The examples and code are explained in a manner that beginners can easily absorb the content. The book has also illustrated various shell commands to access MongoDB. Not only that, but the user will also explore about JSON document and creating queries in MongoDB.
The book can be used for further reference for application build on MongoDB Java or MongoDB Python. Minimum price range and maximum deliverable is the main plus point of this e-book.
Table content
Chapter 1: Introduction
Chapter 2: Download and Install MongoDB on Windows
Download & Install MongoDB on Windows
Install Driver- Javascript, Python and Ruby
Install Robomongo- MongoDB Management Tool
MongoDB Configuration, Import and Export
Configuring MongoDB server with configuration file
Chapter 3: Create Database & Insert Data
Creating a database
Creating a collection
Chapter 4: Add MongoDB Array using insert()
Chapter 5: ObjectId()
Chapter 6: Query Document using find()
Chapter 7: Cursor
Chapter 8: Query Modifications using limit(), sort()
Chapter 9: Count() & remove() function
Chapter 10: Update() Document
Chapter 11: Indexing, Monitoring & Backup
Chapter 12: How to Create User in Mongodb & assign Roles
Chapter 13: Authentication with Kerberos
Chapter 14: Replica Set
Replica Set: Adding the First Member using rs.initiate()
Replica Set: Adding a Secondary using rs.add()
Replica Set: Reconfiguring or Removing using rs.remove()
Troubleshooting Replica Sets
Chapter 15: Sharded Cluster
Chapter 16: Indexing - createIndex()
Understanding Impact of Indexes
Create Indexes
Finding Indexes
Dropping Indexes
Chapter 17: Regular Expression (Regex)
Using $regex operator for Pattern matching
Pattern Matching with $options
Pattern matching without the regex operator
Fetching last 'n' documents from a collection
Read more from Alex Nordeen
Learn SAP MM in 24 Hours Rating: 0 out of 5 stars0 ratingsPython: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Learn HANA in 24 Hours Rating: 5 out of 5 stars5/5Learn SAP Basis in 24 Hours Rating: 5 out of 5 stars5/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Software Testing in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Data Warehousing in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Learn PMP in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SQL in 24 Hours Rating: 5 out of 5 stars5/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Business Analysis : Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SAP SD in 24 Hours Rating: 0 out of 5 stars0 ratingsHacking : Guide to Computer Hacking and Penetration Testing Rating: 5 out of 5 stars5/5Learn R Programming in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SAP HR in 24 Hours Rating: 5 out of 5 stars5/5Learn PHP in 24 Hours Rating: 0 out of 5 stars0 ratingsC# for Beginners: Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Excel in 24 Hours Rating: 4 out of 5 stars4/5Learn Selenium in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn AngularJS in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SAP BI in 24 Hours Rating: 3 out of 5 stars3/5Learn Operating System in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SQLite in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn C Programming in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Design and Analysis of Algorithms in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn DBMS in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Hadoop in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn JSP in 24 Hours Rating: 0 out of 5 stars0 ratings
Related to Learn MongoDB in 24 Hours
Related ebooks
Learn AngularJS in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn NodeJS in 1 Day: Complete Node JS Guide with Examples Rating: 3 out of 5 stars3/5Learning PostgreSQL Rating: 1 out of 5 stars1/5Learn Cassandra in 24 Hours Rating: 0 out of 5 stars0 ratingsCreating your MySQL Database: Practical Design Tips and Techniques Rating: 3 out of 5 stars3/5React Components Rating: 0 out of 5 stars0 ratingsLearn SQL in 24 Hours Rating: 5 out of 5 stars5/5Learn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease Rating: 0 out of 5 stars0 ratingsDBA's Guide to NoSQL Rating: 5 out of 5 stars5/5Web Application Development with MEAN Rating: 0 out of 5 stars0 ratingsReact and React Native Rating: 0 out of 5 stars0 ratingsMEAN Web Development Rating: 5 out of 5 stars5/5Mastering JavaScript Single Page Application Development Rating: 0 out of 5 stars0 ratingsMastering MariaDB Rating: 0 out of 5 stars0 ratingsNode.JS Guidebook: Comprehensive guide to learn Node.js Rating: 0 out of 5 stars0 ratingsAdvanced Web Development with React: SSR and PWA with Next.js using React with advanced concepts Rating: 0 out of 5 stars0 ratingsReactJS by Example - Building Modern Web Applications with React Rating: 4 out of 5 stars4/5Apache Camel Developer's Cookbook Rating: 0 out of 5 stars0 ratingsJson for Beginners: Your Guide to Easily Learn Json In 7 Days Rating: 3 out of 5 stars3/5Beginning Flutter: A Hands On Guide to App Development Rating: 0 out of 5 stars0 ratingsIntroduction to DBMS: Designing and Implementing Databases from Scratch for Absolute Beginners Rating: 0 out of 5 stars0 ratingsJavaScript and JSON Essentials Rating: 5 out of 5 stars5/5Mongoose for Application Development Rating: 5 out of 5 stars5/5
Enterprise Applications For You
Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Notion for Beginners: Notion for Work, Play, and Productivity Rating: 4 out of 5 stars4/5Bitcoin For Dummies Rating: 4 out of 5 stars4/5Access 2019 For Dummies Rating: 0 out of 5 stars0 ratingsLearn Windows PowerShell in a Month of Lunches Rating: 0 out of 5 stars0 ratingsExcel Formulas That Automate Tasks You No Longer Have Time For Rating: 5 out of 5 stars5/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsExcel 2019 For Dummies Rating: 3 out of 5 stars3/5QuickBooks 2023 All-in-One For Dummies Rating: 0 out of 5 stars0 ratings101 Ready-to-Use Excel Formulas Rating: 4 out of 5 stars4/550 Useful Excel Functions: Excel Essentials, #3 Rating: 5 out of 5 stars5/5Enterprise AI For Dummies Rating: 3 out of 5 stars3/5Learning Python Rating: 5 out of 5 stars5/5Excel Formulas and Functions 2020: Excel Academy, #1 Rating: 4 out of 5 stars4/5Scrivener For Dummies Rating: 4 out of 5 stars4/5Mastering QuickBooks 2020: The ultimate guide to bookkeeping and QuickBooks Online Rating: 0 out of 5 stars0 ratingsChange Management for Beginners: Understanding Change Processes and Actively Shaping Them Rating: 5 out of 5 stars5/5The New Email Revolution: Save Time, Make Money, and Write Emails People Actually Want to Read! Rating: 5 out of 5 stars5/5Microsoft 365 For Dummies Rating: 0 out of 5 stars0 ratingsExcel : The Complete Ultimate Comprehensive Step-By-Step Guide To Learn Excel Programming Rating: 0 out of 5 stars0 ratingsSystems Thinking: Managing Chaos and Complexity: A Platform for Designing Business Architecture Rating: 4 out of 5 stars4/5Excel 2016 For Dummies Rating: 4 out of 5 stars4/5The Ridiculously Simple Guide To Numbers For Mac Rating: 0 out of 5 stars0 ratings102 Useful Excel 365 Functions: Excel 365 Essentials, #3 Rating: 0 out of 5 stars0 ratings
Reviews for Learn MongoDB in 24 Hours
2 ratings1 review
- Rating: 5 out of 5 stars5/5Un excelente resumen de las funciones más utilizadas en MongoDB
Book preview
Learn MongoDB in 24 Hours - Alex Nordeen
Chapter 1: Introduction
Mongodb is a document-oriented NoSQL database used for high volume data storage. In this tutorial you will learn how Mongodb can be accessed and some of its important features like indexing, regular expression, sharding data, etc.
MongoDB is a database which came into light around the mid-2000s. It falls under the category of a NoSQL database.
What is MongoDB
MongoDB is a document database. Each database contains collections which in turn contains documents. Each document can be different with varying number of fields. The size and content of each document can be different from each other.
The document structure is more in line with how developers construct their classes and objects in their respective programming languages. Developers will often say that their classes are not rows and columns but have a clear structure with key-value pairs.
As seen in the introduction with NoSQL databases, the rows (or documents as called in MongoDB) doesn't need to have a schema defined beforehand. Instead, the fields can be created on the fly.
The data model available within MongoDB allows you to represent hierarchical relationships, to store arrays, and other more complex structures more easily.
Scalability – The MongoDB environments are very scalable. Companies across the world have defined clusters with some of them running 100+ nodes with around millions of documents within the database
The below example shows how a document can be modeled in MongoDB.
The _id field is added by MongoDB to uniquely identify the document in the collection.
What you can note is that the Order Data ( OrderID , Product and Quantity ) which in RDBMS will normally be stored in a separate table, while in MongoDB it is actually stored as an embedded document in the collection itself. This is one of the key differences of how data is modelled in MongoDB.
{
_id : <0bjectld>
CustomerName : Guru99 ,
Order:
{
OrderlD: 111
Product: ProductA
Quantity: 5
}
What Is Meant By NoSQL
NoSQL is not a relational database. It provides more flexibility since all records are not restricted by the same column names and types defined across the entire table. The below example will give a better idea of what is NoSQL.
Following 2 tables are simple example of a Customer table and an Order table wherein the Customer's table is linked to the Order's table via a relationship.
Customer Table
Order Table
In NoSQL, the tables can probably look like the ones as shown below
Customer Table
Order Table
The first thing you will notice straightaway is that you don't have columns with special column names defined, but instead each field has a key-value pair.
You will notice that in the customer's table that the first 3 keys are the same for all 3 rows, but the fourth key (City and Status) is different for the first 2 rows and not applicable for the third row.
Likewise, in the Orders tables,