Week 2 L1 Flashcards
How is data stored and managed in MongoDB ?
stored in BSON(Binary JSON)
managed in json
How are documents organised in mongo db ?
Document are organised into collections
A collection of documents is loosely comparable in certain respects to a relation of rows
How is a document identified in mongo db ?
Using a unique document key. Can be overridden.
Can be generated from timestamp, machine id, process id and counter.
How do you create relationships between documents ?
Include one ID of a document in another. (Referencing)
Why do we use relational schema ?
defined before data is inserted
Fixed set of fields for all records with fixed datatype and size. Can use null constraints.
New fields means schema must be updated.
What do we mean by referential integrity ?
Using PK and FK for relationships
What is schema less documents ?
No fixed schema
First document creates collection
Fields can be different and have no fixed type
No integrity checks
What is CRUD ?
Create, read update delete?
What key words does MongoDB use for crud ?
Insert , find, update, remove