03 - The Document-oriented Database Flashcards
1
Q
How does a document-oriented database save its records?
A
Stores records as documents
2
Q
Define
documents
A
key-value pairs
3
Q
List
Advantages of Document-Oriented Database
3
A
- Better Performance
- Horizontal Scalability
- Dynamic and Flexible Schema
4
Q
List
Disadvantages of Document-Oriented Database
2
A
- Functionality
- Dependent on the application
5
Q
Define
Database
A
Top level containers for data
6
Q
List
Commands run on a database
3
A
- User creation
- Configuration
- Creating collections
7
Q
SQL: ____, MongoDB: ____
(in terms of data storage)
A
Tables, Collections
8
Q
Collections are (explicitly, implicitly) created
A
implicitly
9
Q
How to connect to a MongoDB server? (using mongosh)
A
mongosh --host <ip address> mongosh "mongodb://<ip address>/"
10
Q
How to connect to a database in a MongoDB Server (using mongosh)?
A
mongosh --host <ip address> <database name> mongosh "mongodb://<ip address>/<database name>
10
Q
How to switch db (from within Mongo Shell)?
A
use <database name>
11
Q
A