horizontal scaling and why NoSQL is used
NoSQL and Object-Oriented Databases
Relational vs. non-relational databases, NoSQL families, MongoDB documents and collections, JSON and BSON, CRUD operations in MongoDB, Compass and Atlas, and object-oriented DBMSs compared with RDBMSs.
How to read this page
Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.
All 34 slides
- 1 NoSQL and Object-Oriented Databases
- 2 LEARNING GOALS
- 3 TOPICS
- 4 RELATIONAL DATABASES
- 5 NON-RELATIONAL DATABASES
- 6 NON-RELATIONAL
- 7 NOSQL EXAMPLES
- 8 NON-RELATIONAL DATABASES (NOSQL)- MONGODB
- 9 MONGODB DOCUMENT EXAMPLE
- 10 NON-RELATIONAL DATABASES (NOSQL)- MONGODB
- 11 NON-RELATIONAL DATABASES (NOSQL)- MONGODB
- 12 QUICK COMPARISON OF ELEMENTS
- 13 MongoDB Relational DB
- 14 MONGODB FEATURES
- 15 JSON IN MONGODB
- 16 JSON OBJECT AND ARRAY
- 17 JSON DATA TYPES
- 18 JSON USED IN MONGODB
- 19 JSON USED IN MONGODB
- 20 DISADVANTAGE OF JSON
- 21 DISADVANTAGE OF JSON
- 22 Slide 22
- 23 DATA TYPES USED IN MONGODB
- 24 CRUD Operations in MongDB
- 25 CREATE OPERATIONS
- 26 READ OPERATIONS
- 27 UPDATE OPERATIONS
- 28 UPDATE OPERATIONS
- 29 DELETE OPERATIONS
- 30 MONGODB COMPASS AND ATLAS
- 31 OO DATABASE MANAGEMENT SYSTEMS
- 32 OODBMS HISTORY
- 33 RDBMS VS OODBMS: EXAMPLE
- 34 RDBMS VS OODBMS (2)
NON-RELATIONAL DATABASES
Notes
NoSQL ("not only SQL"): flexible or no schema, horizontal scaling, high availability, often relaxed consistency.
Exam angle
Horizontal scaling (scaling out) means:
NOSQL EXAMPLES
Notes
Families: document (MongoDB), key–value (Redis), column-family (Cassandra), graph (Neo4j).
Exam angle
MongoDB is a:
QUICK COMPARISON OF ELEMENTS
Notes
MongoDB ↔ relational: database ↔ database, collection ↔ table, document ↔ row, field ↔ column, embedding/linking ↔ joins.
Exam angle
In MongoDB, a collection corresponds to a relational:
JSON IN MONGODB
Notes
Documents are JSON-like (stored as BSON): objects { } and arrays [ ].
CRUD Operations in MongDB
Notes
CRUD: insertOne/insertMany, find, updateOne/updateMany ($set), deleteOne/deleteMany.
Exam angle
Which MongoDB call changes a field in matching documents?
OO DATABASE MANAGEMENT SYSTEMS
Notes
OODBMS: stores objects directly (identity, encapsulation, inheritance); good for complex objects (CAD, multimedia).
Exam angle
what OODBMSs suit
RDBMS VS OODBMS: EXAMPLE
Notes
RDBMS: tables, SQL, simple types. OODBMS: objects with methods, OIDs, no impedance mismatch with OO code.