Read 04 ~ Advanced Mongo/Mongoose
By Abdallah obaid
NAME | URL |
---|---|
Home | Home. |
Prep | Prep: Engineering Topics. |
Read 01 | Node Ecosystem, TDD, CI/CD. |
Read 02 | Classes, Inheritance, Functional. |
Read 03 | Data Modeling & NoSQL Databases. |
Read 04 | Advanced Mongo/Mongoose. |
Read 05 | Linked Lists. |
Read 06 | HTTP and REST. |
Read 07 | Express. |
Read 08 | Express Routing & Connected API. |
Read 09 | API Server. |
Read 10 | Stacks and Queues. |
Read 11 | Authentication. |
Read 12 | OAuth. |
Read 13 | Bearer Authorization. |
Read 14 | Access Control (ACL). |
Read 15 | Trees. |
Read 16 | Event Driven Applications. |
Advanced Mongo/Mongoose:-
## why would a developer choose to make data models?
- Ensures that all data objects required by the database are accurately represented.
- Provides a clear picture of the base data and can be used by database developers to.
- It is also helpful to identify missing and redundant data.
## What purpose do CRUD operations serve?
- Create, read, update, delete each one can be alocated with one of the “REST” methodes and its the Four basic functions of persistent storage in the database.
## What kind of database is Postgres? What kind of database is MongoDB? *postgres is a tabular relational database (sql) and mongoDb is not atabular relational database (no-sql)
## What is Mongoose and why do we need it?
- Is an Object Data Modeling (ODM) library for MongoDB and Node. js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB
## Define three related pieces of data in a possible application. An example for a store application might be Product, Category and Department. Describe the constraints and rules on each piece of data and how you would relate these pieces to each other. For example, each Product has a Category and belongs in a Department.
- Speed.
- Distance.
- Time.
- Speed = Sistance / Time
## Describe how NoSQL Databases scale horizontally:
- NoSQL databases are designed to expand horizontally and in Horizontal scaling means that you scale by adding more machines into your pool of resources.
## Give one strong argument for and against NoSQL Databases:
- postgres is a tabular relational database (sql) and mongoDb is not atabular relational database (no-sql)
## Name 3 cloud based NoSQL Databases:
- Oracle, mongodb, CouchDB.
## Database:
- A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques.
## Data model:
- Its an abstract model that we use to organize the data elements and it give us the role of relations between them.
## CRUD:
- Its refer to create, read, update, delete each one can be alocated with one of the “REST” methodes and its the Four basic functions of persistent storage in the database.
## schema:
## Database schema:
- Logecal structure for the database.
- Describes the organization of data.
- Represents the relationship between various tables in a database.
## Sanitize:
- The process of deliberately, permanently and irreversibly removing or destroying the data stored on a memory device to make it unrecoverable
## Structured Query Language (SQL):
- SQL is a standard language for accessing and manipulating databases.
## Non SQL (NoSQL):
- Provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.
## MongoDB:
- Is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schema
## mongoose:
- Is an Object Data Modeling (ODM) library for MongoDB and Node. js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB
## Record:
- Alot of fields that contains data about one same thing.
## Document:
- Nonrelational database that is designed to store and query data as JSON-like documents.
## Object-relational mapping:
- A programming technique for converting data between incompatible type systems using object-oriented programming languages.