Skip to content

katheroine/mongodb.lab

Repository files navigation

MongoDB.lab

Laboratory of MongoDB.

  1. Installation and running databases
  2. Managing databases
    1. Displaying databases
    2. Displaying actually using database
    3. Creating and choosing databases
    4. Deleting database
  3. Managing collections
    1. Displaying collections
    2. Creating collections
    3. Deleting collections
  4. Managing documents
    1. Inserting documents
    2. Updating documents
    3. Deleting documents
  5. Querying database
    1. Queries
    2. Aggregations

MongoDB is a document database. It stores data in a type of JSON format called BSON.

-- W3Schools MongoDB Tutorial

SQL vs Document Databases

SQL databases are considered relational databases. They store related data in separate tables. When data is needed, it is queried from multiple tables to join the data back together.

MongoDB is a document database which is often referred to as a non-relational database. This does not mean that relational data cannot be stored in document databases. It means that relational data is stored differently. A better way to refer to it is as a non-tabular database.

MongoDB stores data in flexible documents. Instead of having multiple tables you can simply keep all of your related data together. This makes reading your data very fast.

You can still have multiple groups of data too. In MongoDB, instead of tables these are called collections.

-- W3Schools MongoDB Tutorial

About

Laboratory of MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published