Chapter 0: Introduction and Setup MongoDB URI Uniform Resource Identifier Used to connect applications and MongoDB instances SRV <host> points to service record No need for manually modifying the connection string when servers in cluster change or rotate out Chapter 1: Driver Setup MongoClient To initial connection with the database Gather information about a database […]
Category: MongoDB
The MongoDB Aggregation Framework (M121)
Chapter 1: Introduction and Aggregation Concepts The concept of Pipelines: Composition of stages Stages are configurable to produce desired transformations Documents flow like parts in an assembly line Stages can be arranged in multiple ways Aggregation Structure and Syntax Pipeline are always an array of one or more stages Each stage is a JSON object […]
Basic Cluster Administration (M103)
Chapter 0: Introduction & Setup Linux Basics Grant read-only access to the user chmod 400 <path-to-the-file> Change file ownership chown [new owner]:[group] <file name> Chapter 1: The Mongod The Mongod d stands for daemon Core server of MongoDB, handling connection, request and persisting data Default configuration port: 27017 dbpath: /data/db bind_ip: localhost auth: disabled The […]
MongoDB Basics (M001)
What is the MongoDB Database? A database – Structured way to store and access data A NoSQL database – Non-relational database NoSQL document DB – Data in MongoDB is stored as documents Stored in collections – Documents are stored in collections of documents Document – A way to organize and store data as a set […]