Since early 2015 I’ve been an active member of the DigitalOcean’s community program (honoured with the Community Doer cover in 2018), writing articles and tutorials on open-source software, SysOps/DevOps topics, server maintenance, programming and databases. During that time, I’ve written over 70 pieces, all of which are available on the community site and on Mateusz Papiernik’s Digital Ocean profile.
MongoDB is one of the most popular document-oriented NoSQL database management systems (DBMS). Unlike relational database systems, which store data in highly structured tables consisting of rows and columns, MongoDB stores data in JSON-like structures referred to as documents, giving you often-need freedom in managing data.
DigitalOcean’s How To Manage Data with MongoDB series provides an overview of MongoDB’s features and how you can use them to manage and interact with your documents.
I’ve contributed a series of articles on MongoDB to this series and I invite you to check them out, as well as other articles in the whole series, co-authored with Mark Drake.
Table of Contents
I encourage you to visit another series on databases I’ve co-authored, teaching all things MySQL.
Learning MySQL with Mateusz @DigitalOcean
DigitalOcean’s How to use SQL series intended to help you get started with using SQL. It includes a mix of conceptual articles and tutorials which provide introductions to various SQL concepts and practices.
An Introduction to Document-Oriented Databases
This conceptual article outlines the key concepts related to document databases and discusses benefits of using them. Examples used in this article reference MongoDB, a widely-used document-oriented database, but most of the concepts highlighted here are applicable for most other document databases as well.
How To Design a Document Schema in MongoDB
Document-oriented databases like MongoDB make it possible to break free from rigidity and limitations of the relational model. However, the flexibility and freedom from being able to store self-descriptive documents in the database can lead to other pitfalls and difficulties. This conceptual article outlines the common guidelines related to schema design in a document-oriented database and typical ways to model relationships between data.
How To Use the MongoDB Shell
The MongoDB shell is an interactive console you can use to connect to the database server and execute commands on it, allowing you to perform administrative tasks and read, write, or manipulate data directly. This tutorial explains learn how to use the MongoDB shell to connect to a MongoDB database and query the database interactively.
How To Use Aggregations in MongoDB
MongoDB provides aggregation operations through aggregation pipelines — a sequential series of data processing operations through which the documents go to obtain the final result. In this tutorial, you’ll learn by example how to use the most common features of the aggregation pipelines.
How To Use Indexes in MongoDB
Indexes are one of the most essential tools the database administrator can use to consciously aid the database engine and improve its performance. In this tutorial, you’ll learn what indexes are, how to create them and check if they are used when querying the database.
How To Create Queries in MongoDB
MongoDB provides a robust query mechanism that makes it straightforward to define filtering criteria when retrieving documents. In this tutorial, you’ll learn how to query MongoDB collections using a different range of filters and conditions. You will also learn what cursors are and how to use them within the MongoDB shell.
How To Perform CRUD Operations in MongoDB
Data management involves four fundamental types of database operations: operations that allow you to create, read, update, and delete data. Collectively, these operations are known as CRUD operations. This tutorial outlines how to create new MongoDB documents and later retrieve them to read their data. It also explains how to update the data within documents, as well as how to delete documents when they are no longer needed.
How To Monitor MongoDB’s Performance
MongoDB comes installed with a variety of tools and utilities you can use to observe database performance. In this tutorial, you’ll learn how to monitor database metrics on-demand using built-in commands and tools. You’ll also become familiar with MongoDB’s database profiler which can help you detect poorly optimized queries.
How To Use Schema Validation in MongoDB
In MongoDB, the database engine feature that makes it possible to apply constraints on the document structure is called Schema Validation and is built around JSON Schema, an open standard for JSON document structure description & validation. In this tutorial, you’ll learn about schema validation and format requirements in MongoDB, and how to apply these to control structure of documents in a database.
How To Perform Full-text Search in MongoDB
There are multiple highly specialized tools that have full-text search capabilities, but many database management systems today have such features, though perhaps with some limitations. In this tutorial, you’ll learn by example how to create a text index in MongoDB and use it to search the documents in the database against common full-text search queries and filters.
How To Use Sharding in MongoDB
Sharding is a strategy some users will implement to help them scale their database horizontally, with the hope being that the improved scalability will outweigh the added complexity. This guide outlines how sharding works in MongoDB, a popular, document-oriented, NoSQL database.
How To Use Transactions in MongoDB
Though they were a staple feature of relational database management systems for many years, ACID transactions are a relatively new feature in MongoDB. This tutorial explains what transactions are and how you can initiate and commit them in a MongoDB database. It also provides an overview of the ACID principles required for any transaction: atomoicity, consistency, isolation, and durability.
How To Use MongoDB Compass
With MongoDB Compass, you can access most of the features the MongoDB database engine offers through an intuitive visual display. You can glance through the databases, collections, and individual documents, interactively create queries, manipulate existing documents, and design aggregation pipelines through a dedicated interface. In this tutorial, you’ll install MongoDB Compass and familiarize yourself with different tasks that can especially benefit from using the graphical tool.
How To Use MongoDB Access Control
MongoDB employs a robust mechanism to control access and privileges to a databases system known as Role-Based Access Control (RBAC). In this tutorial, you’ll learn how RBAC works, the meaning and purpose of the principle of least privilege, as well as how to use MongoDB’s access privileges features in practice.
MongoDB is not your cup of tea? Check out the assortment of Mateusz Papiernik’s tutorials on system administration @DigitalOcean, too!
And if you need a development team with in-depth MongoDB experience…
Let’s talk!CTO @ Makimo. Software engineer by heart, who learns and adapts quickly and like making impossible things possible. Technical writer for DigitalOcean and technical editor for Helion. After work, a wine writer and an amateur pianist.