Getting Started
What is MongoDB?
Install / Config
C.R.U.D. Ops
Data Modeling
Database Mgmt
What is MongoDB?
What is MongoDB Aggregation?
Modalities: Pipeline, Map-Reduce, Single Purpose
.
Pipeline
Map Reduce
Single Purpose
Pipeline Aggregation
.
Groups values from multiple documents
Performs ops on grouped data
Returns single result
Like SQL GROUP BY and HAVING
Map-Reduce Aggregation
.
Condenses large volumes of data into useful aggregated results
Operation: Map, Reduce, Finalize
Map:
function emits key-value pairs
Reduce:
collects and condenses the aggregated data
Finalize:
further condenses or processes the results
Single Purpose Aggregation
.
Operations:
count
,
distinct
and
group
Easy to use
Limited in scope
+
o
-