Lec 1 (Adms Lab)
Lec 1 (Adms Lab)
Mongo DB
MongoDB: A NoSQL database that stores data in flexible, JSON-like documents. It's great for handling
unstructured data and scalability but doesn't use SQL.
2. Document-Oriented: It stores data in JSON-like documents called BSON (Binary JSON). Each document
is a set of key-value pairs, allowing for nested structures.
3. Schema-less : MongoDB allows flexible data models, meaning you don’t need to define a fixed schema
for the data, and different documents in the same collection can have different fields.
4. Collections: Data is stored in collections , which are groups of documents. Collections are the
equivalent of tables in relational databases.
5. Scalability: MongoDB is designed for horizontal scalability, meaning it can easily distribute data across
many servers, making it suitable for large-scale applications.
6. High Availability: It supports replication, ensuring data availability and redundancy across multiple
servers (replica sets).
7. Sharding: MongoDB can distribute data across multiple machines (sharding) to ensure high
performance and scalability.
8. Powerful Querying: It supports complex queries, including filtering, sorting, and aggregation, using its
rich query language, though it's different from SQL.
9. Indexes: MongoDB allows you to create indexes on fields to improve the performance of queries.
10. Aggregation Framework: MongoDB has a powerful aggregation framework for processing data,
performing calculations, and transforming documents.
11. Open-Source: MongoDB is open-source, and it has an active community, which contributes to its
continuous improvement.
12. Use Cases: Ideal for applications needing flexible data models, real-time analytics, content
management, and systems handling large volumes of diverse data, like social networks or IoT
applications.