🍃 MongoDB
← Back to Portfolio
🍃
MongoDB
MongoDB — Complete Data Platform
DOCUMENT MODEL & CRUD
BSON Documents
Dynamic schema
Embedded docs
_id ObjectId
CRUD Operations
insertOne / find
updateOne / delete
Query operators
AGGREGATION PIPELINE
$match
Filter
$group
Aggregate
$sort
Order
$lookup
Join
$unwind
Arrays
$project
Shape
More stages: $bucket · $facet · $addFields · $replaceRoot · $sample
Pipeline optimization · Index utilization · Aggregation limits
SCHEMA & INDEXING
Schema Design
1:1 · 1:N · N:M
Bucketing · Polymorphism
Time Series patterns
Index Strategy
Single · Compound
Multikey · Text
Geospatial · TTL
explain() · Covered Queries · hint()
Index intersection · Sort with index
TRANSACTIONS
Multi-Document ACID Transactions
startSession() · withTransaction() · Retry · Commit · Abort
REPLICATION & SHARDING
Replica Set
Primary (reads + writes)
Secondary (replication) · Arbiter
Election · Oplog · Rollback
Sharded Cluster
Shard key · Chunks
Mongos (router)
Config Servers · Balancer
Storage Engine
WiredTiger (default)
In-memory / MMAPv1
Snappy · Zlib · Zstd
Security & Operations
Authentication / Authorization
Encryption at rest
Auditing · Profiling · Backups
Performance: Query Profiling · Slow Query Logging · Connection Pool
Monitoring: MongoDB Atlas · Ops Manager · Cloud Manager
Migration: mongodump · mongorestore · Atlas Live Migration