MongoDB is a NoSQL (non-relational) database. It stores data in a type of JSON format called BSON (Binary JSON).
Unlike traditional relational databases (like MySQL or PostgreSQL), MongoDB does not use tables and rows but instead uses collections and documents.
NoSQL Databases
NoSQL databases are often called non-relational databases, where NoSQL means anything that is not SQL.
Key Features of MongoDB
- Flexible Schema Design.
- Horizontal Scalability through sharding.
- High performance for Read and Write operations.
- Power Query Language.
- Built-in replication for high availability.
- Geospatial data support
- JSON-like BSON data format.
- Relatime analytics capabilities.
- Easy Integration with big data tools.
- Open source and Community Driven
MongoDB Data Model
- Database → Container for collections
- Collection → Group of related documents
- Document → Key-value pairs stored in BSON format
Example document:
{ "name": "Anuj Kumar", "age": 25, "skills": ["PHP", "Python", "MongoDB"], "address": { "city": "Delhi", "pin": 110001 } }
The post MongoDB Intorduction appeared first on PHPGurukul.
Source: Read MoreÂ