MongoDB Detailed Answers
MongoDB Detailed Answers
Features:
- Aggregation framework
- Geospatial support
a) Speed: Rate of processing operations. MongoDB achieves speed via indexing and in-memory
computation.
b) Scalability: Ability to handle increased loads by adding resources. MongoDB uses sharding.
c) Agility: Ability to adapt to changing requirements. MongoDB's schema-less model supports agility.
A non-relational approach does not use table-based models. It uses document, key-value, column,
or graph models. Suitable for big data, unstructured data, and flexible development.
JSON (JavaScript Object Notation) is a format used by MongoDB for storing data as documents
(BSON in storage).
Advantages:
- Human-readable
- Schema flexibility
MongoDB balances both by offering high-speed reads/writes and powerful features like aggregation
and replication.
MongoDB uses document-based models with flexible schemas; RDBMS uses structured tables and
fixed schemas.
MongoDB is schema-less, but schema design is important for performance and consistency.
MongoDB can run on-premises, cloud, containers, or serverless platforms. MongoDB Atlas allows
Hierarchical document model: Database -> Collections -> Documents. Documents are BSON
JSON is text-based and human-readable. BSON is binary, supports more data types, and is
Capped Collection: Fixed-size collections that overwrite oldest data, used for logging.
Polymorphic Schema: Different document structures in the same collection, enabling flexibility.