Book Image

Learning Single-page Web Application Development

Book Image

Learning Single-page Web Application Development

Overview of this book

Table of Contents (15 chapters)
Learning Single-page Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

MongoDB and the terminal


MongoDB, also known as NoSQL database, is a document-oriented database; this means that all the data is stored like a JSON file.

Instead of storing your data in tables and rows as you would do with a relational database, MongoDB stores this data in the key-value format, using binary JSON (BSON); developers can easily map to modern object-oriented languages, without a complicated ORM layer. This new data model simplifies coding significantly and also improves the performance of the grouping of the relevant data together internally.

MongoDB is not limited to a two-dimensional approach to a relational database where we have rows and columns; it can represent objects in the real world as complex and unique as they are. Imagine that in your relational database, you must enter a new attribute to a record; for this, your changes in this model should be applied to the entire database.

Comparing a relational database with the NoSQL database

In the case of MongoDB, you can apply...