Skip to main content
00:00/00:00
Lecture 26 of 219

Shell Scripts and the Interactive Mode

Download Course (Free)

Course Content

0 / 219 completed
Section 1: Index10 videos

Build Indexes for Arrays

8m

The Sparse Index

15m

The TTL Index

10m

Introduction to the Text Index

7m

The Text Index

17m

Field Weight

6m

Setting the Field Weight

10m

Introduction to Index

21m

Demonstration of Creating and Using Indexes

15m

Index-related Methods

13m
Section 2: Capped Collection3 videos

Introduction to Capped Collections

15m

Working with a Capped Collection

12m

Tailable Cursor

8m
Section 3: MongoDB Installation4 videos

MongoDB Installation Demonstration

21m

Installation Challenge Making Sure You Have Fully Understood Everything

24m

Install MongoDB Introduction

8m

MongoDB Atlas

20m
Section 4: MongoDB Basic Concepts14 videos

Daemon, Process and Shell

10m

MongoDB Config File

15m

MongoDB Schema

15m

MongoDB Shell Introduction Part 1

22m

MongoDB Shell Introduction Part 2

6m

Mongo Shell Native Methods

6m

The DB object and the Connection Object

4m

Try the DB and Connection Object on Mongo Shell

8m

Starting a Mongo Shell without Selecting a Database the --nodb flag

8m

The .mongorc.js file

7m

A Brief Review of How Prototype Chain Works in JavaScript

12m

Application of the .mongorc.js File

15m

Shell Scripts and the Interactive Mode

10mNow Playing

What We Are About to Learn Next

23m
Section 5: Naming Rules and BSON3 videos

Rules You Must Follow When Naming Databases, Collections and Fields

20m

BSON Data Type

12m

BSON Introduction

10m
Section 6: MongoDB CRUD Operations25 videos

CRUD Study Preparation

6m

Create

8m

Try the insertMany Method

2m

Insert Multiple Documents Together

5m

Insert One Document at a Time

4m

The Cursor Object

5m

The Insert Command

3m

Query Operators

14m

Application of Collation in Making Queries

6m

Try Query Operators

9m

Collation Introduction

17m

How to Work with Nested Array

12m

How to Work with Nested Documents Part 1

8m

The Cursor Object and Its Methods

19m

How to Copy a Collection

4m

How to Work with Nested Documents Part 2

5m

Introduction to Update

12m

Upsert the Combination of Insert and Update

8m

How to Update Date-type Values

7m

Demonstration of Updating Documents

24m

Array-related Updates Part 1

7m

The addToSet Operator No Duplicated Elements

7m

Array-related Updates part 2

25m

The Three Element Updaters $, $[], and $[identifier]

17m

The Delete Operation

13m
Section 7: Validator2 videos

Introduction to Validator

14m

Try the Validator

12m
Section 8: Storage Engine and Journaling4 videos

Manually Release Storage Space Back to OS

10m

Journaling

8m

Database and Collection Stats

19m

Storage Engine and Checkpoint

14m
Section 9: Aggregation31 videos

Aggregation Introduction

10m

Pipeline Stage and Operators

10m

Try the Aggregation Pipeline

6m

Design the Aggregation Pipeline

10m

The $avg and $sum Operator

9m

Try the $avg and $sum Operator

6m

Rounding Average User Ratings

4m

Challenge Calculating the Final Price Price, VAT, Discount and Shipping Fee

12m

The $expr Operator Finding Profitable Products

7m

The $round and $trunc Operator

9m

The $group Stage

20m

Other Commonly Used Aggregation Operators

9m

Sort Documents Based on the TextScore During a Text Keyword Search

10m

$unwind

7m

$sort, $skip, $limit and $count

15m

$sortByCount a Combination of $group, $sum and $$sort

6m

Introduction to $bucket and $bucketAuto

10m

Application of the $bucketAuto Stage

10m

$facet Reuse Results of the Previous Stage

12m

Application of the $bucket Stage

12m

$arrayElemAt Retrieving Elements Based on Index

3m

Challenge Find the Car with the Highest Mileage

5m

The Left Join $lookUp

8m

Application of the $lookUp stage Retrieving Products and Ratings Together

5m

Using $lookUp the Other Way

8m

Introduction to the Slightly Complicated $merge Stage

8m

$out Keep Aggregation Results for Future Use

5m

Try the $merge Stage

15m

Introduction to MapReduce

12m

View a Read-Only Copy of a Collection

12m

Try the mapReduce Function

9m
Section 10: Replica20 videos

Introduction to a Replica Set

17m

How to Set Up a Replica Set

10m

Understanding How a Replica Set Works

16m

Set Up Our First Replica Set

26m

Oplog

19m

The Replication Lag

11m

Problems Caused by the Replication Lag

16m

Initial Sync

8m

Election and Catch-up

15m

Retryable Writes

5m

Rollback

5m

Custom Write Concern Tags

6m

Introduction to Commonly Used Replica Methods

8m

Write Concern W, J, and wTimeout

19m

Add and Remove a Delayed Set Member

9m

Read Preference

8m

Monotonic Read and Write

6m

Try the Majority and Linearizable Read Concern

11m

Read Concern

47m

Causal Consistency

11m
Section 11: Sharding21 videos

Introduction to Sharding

9m

Chunks

13m

Sharding Strategy

17m

Shard Key

33m

Components of a Sharded Cluster

22m

Introduction of How to Set Up a New Sharded Cluster

14m

Operating a Sharded Cluster Part One

26m

Setting Up a New Sharded Cluster

38m

Manually Move a Chunk to a Designated Shard

11m

Operating a Sharded Cluster Part Two

27m

Manually Merge Two Chunks into One

7m

Manually Split a Chunk

11m

How to Delete Documents from a Sharded Cluster

7m

Updating Shard Key Field Values

8m

What Happens If We Lost All Config Servers

4m

Introduction to Shard Zones

12m

Create and Delete a Zone for Shards

12m

Limiting Chunk Migrations Using Zones

11m

New Feature Brought by v4.4 Adding New Fields to the Shard Key Index

6m

Flush the Routing Table

7m

How the Balancer Migrates Chunks and How to Deal With Orphaned Documents

24m
Section 12: Transaction5 videos

The ACID Properties

10m

How to Use Transaction on Mongo Shell

4m

Multi-document Transaction

17m

Running a Transaction Operation on a Replica Set

13m

Application Updating Shard Key Field Values

6m
Section 13: Security and Role-based Access Control14 videos

Role-based Access Control Demonstration

19m

Introduction to User Access Control

15m

Other Built-in Roles

11m

Trying Other Built-in Roles

15m

Custom Roles

9m

Create a User Account with User-defined Roles

7m

Create a Custom Role and User Account to Manage Passwords

5m

Introduction to KeyFile

11m

Enabling Internal Authentication on a Replica Set

7m

Experimenting Role-based Access Control on a Replica Set

25m

Authentication Mechanism

12m

Enabling Internal Authentication in a Replica Set Without Down Time

19m

Enabling Authentication for a Sharded Cluster

12m

Rotating Keys

30m
Section 14: Change Stream2 videos

Change Stream Introduction

22m

Filter Change Events

28m
Section 15: GridFS Uploading and Downloading Files2 videos

GridFS Introduction

10m

Upload, List, Search and Download Files Using GridFS

27m
Section 16: Backup and Restore2 videos

Backup and Restore a Standalone Mongod Process

22m

Backup and Restore a Replica Set

14m
Section 17: NodeJS Driver7 videos

Reading Documents Using a NodeJS Driver

16m

Inserting New Documents and Creating a Capped Collection

16m

Deleting and Updating Documents

10m

Set Up a NodeJS MongoDB Driver and Connect to MongoDB

37m

Preparation for Creating a Transaction Program Using NodeJS

20m

session.withTransaction()

18m

Transaction

37m
Section 18: Bonus Essential JavaScript Knowledge for the MongoDB NodeJS Driver7 videos

Declaring a variable using VAR and LET

12m

LET

5m

Temporal Dead Zone

3m

Destructure Assignment Part 1

8m

Destructure Assignment Part 2

10m

Async Await Part 1

13m

Async Await Part 2

4m
Section 19: Mongoose43 videos

Introduction to Mongoose

19m

Quick Start

19m

How to Deal With User-access Control

12m

Why An Incorrect Program CAN Work

15m

Switching from One Database to Another

3m

Create Multiple Connections with Different Databases

23m

Understanding the Relationship Between Models and Connection Objects

14m

Mongoose Schema Basics

21m

Mongoose Schema Demo

26m

SubDocument and Nested Path

22m

How to Work with Mongoose Date

16m

Mongoose Schema Options Index

10m

Mongoose Array

26m

Mongoose Schema Options ID

9m

Mongoose Schema Options Custom Collection Name and Capped Collection

10m

Virtual Properties and Property Aliases

14m

Schema Instance and Static Methods

10m

Mongoose Query Part 2

9m

Mongoose Query Part 1

23m

Mongoose Aggregation Introduction

13m

Mongoose LookUp

8m

Mongoose Populate

15m

Keeping Virtual Properties During a Conversion

7m

Mongoose CRUD Review

33m

Trigger the Validator Without Saving a Document

7m

Populating Virtual Properties

18m

Mongoose Validator Introduction

16m

Setting Custom Validation Error Messages

11m

Update Validator

13m

Async Validator Error Message

7m

THIS in a Validator Function

13m

Custom Validator

14m

Mongoose Middleware Introduction

4m

Document Middleware

16m

Validator Application Unique User Account Name

15m

Query Middleware

9m

Aggregation Middleware

16m

Collection Middleware

6m

The Execution Order of Middleware

6m

Validator Middleware

12m

Middleware Errors

11m

Middleware Naming Collisions Document VS. Query

13m

Mongoose Discriminator

14m