Chapter 12. Data Processing and Aggregation with MongoDB
Aggregation queries are a very common way to get summarized data by counting or adding features onto our dataset. MongoDB provides us with different ways to get aggregated data fast and easy. In this chapter, we will explore the basic features of MongoDB as well as two ways to get summarized data using the Group
function and the Aggregation framework.
In this chapter, we will cover the following topics:
- Getting started with MongoDB
- Data processing
- Aggregation framework
In Chapter 2, Preprocessing the Data, we introduced NoSQL (Not Only SQL) databases and their types (document-based, graph-based, and key-value stores). NoSQL databases provide key advantages to the user, such as scalability, high availability, and processing speed. Due to the distributed nature of the NoSQL technology, if we want to scale a NoSQL database, we just need to add machines to the cluster to meet demand (horizontal scaling). Most NoSQL databases...