How does a document-oriented database save its records?
Stores records as documents
Define
documents
key-value pairs
List
Advantages of Document-Oriented Database
3
List
Disadvantages of Document-Oriented Database
2
Define
Database
Top level containers for data
List
Commands run on a database
3
SQL: ____, MongoDB: ____
(in terms of data storage)
Tables, Collections
Collections are (explicitly, implicitly) created
implicitly
How to connect to a MongoDB server? (using mongosh)
mongosh --host <ip address> mongosh "mongodb://<ip address>/"
How to connect to a database in a MongoDB Server (using mongosh)?
mongosh --host <ip address> <database name> mongosh "mongodb://<ip address>/<database name>
How to switch db (from within Mongo Shell)?
use <database name>