Since MongoDB is not predicated on joining data from multiple tables, it is much easier to distribute, and shard, data across multiple servers. In contrast to relational database design, which will requrie sevreal joins across tables, or an ugly means of storing multiple values in a single table fields. In this example, we will combine author, tags and coments to enable rendering a news article with a single database query. Important advantages of this design are that developer team can design data models to support common data access pattern.įor example, a team building a news website can design a model so that the most viewd pages may require only a single query to the database and can do this an elegant way that is fully supported by MongoDB. This JSON document provides an example that illustrates the type of data MongoDB stores as a single record. When discussing MongoDB data models, queries to MongoDB, and data stored in MongoDB, we use JSON or Javascript Object Notation. Most of features and functionality of MongoDB rest on the fact that it’s a document database. All the materials Week 1 Introduction What is MongoDB?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |