M
MongoDB
MongoDB is a document-oriented NoSQL database designed for scalability and flexibility with JSON-like documents.
What is MongoDB?
MongoDB is a document-oriented NoSQL database that stores data in flexible, JSON-like documents called BSON (Binary JSON). It's designed for scalability and developer productivity with dynamic schemas.
MongoDB Concepts
- Document: JSON-like data record
- Collection: Group of documents
- Database: Container for collections
- Field: Key-value pair in document
- Index: Performance optimization
- Replica Set: High availability configuration
MongoDB Features
Flexible schema, horizontal scaling (sharding), aggregation framework, and rich query language.
Common Misconceptions
- "MongoDB doesn't support ACID" - Supports multi-document transactions
- "MongoDB is always faster" - Depends on use case
- "Schema-less means no structure" - Schema validation available