Book Image

MongoDB Data Modeling

By : Wilson da Rocha França
Book Image

MongoDB Data Modeling

By: Wilson da Rocha França

Overview of this book

<p>This book covers the basic concepts in data modeling and also provides you with the tools to design better schemas. With a focus on data usage, this book will cover how queries and indexes can influence the way we design schemas, with thorough examples and detailed code.</p> <p>The book begins with a brief discussion of data models, drawing a parallel between relational databases, NoSQL, and consequently MongoDB. Next, the book explains the most basic MongoDB concepts, such as read and write operations, indexing, and how to design schemas by knowing how applications will use the data. Finally, we will talk about best practices that will help you optimize and manage your database, presenting you with a real-life example of data modeling on a real-time logging analytics application.</p>
Table of Contents (16 chapters)

The relationship between MongoDB and NoSQL


If you search on Google for MongoDB, you will find about 10,900,000 results. In a similar manner, if you check Google for NoSQL, no fewer than 13,000,000 results will come to you.

Now, on Google Trends, a tool that shows how often a term is searched relative to all searched terms globally, we can see that the growth of interest in both subjects is quite similar:

Google Trends search comparison between NoSQL and MongoDB terms since 2009

But, what actually exists in this relationship, besides the fact that MongoDB is a NoSQL database?

Since the first open source release in 2009, by a company named 10gen, MongoDB was the choice for many players on the Web and accordingly DB-Engines (http://db-engines.com/en/) became the fourth most popular database, and the most popular NoSQL database system.

10gen converted to MongoDB Inc. on August 27, 2013, showing that all eyes were on MongoDB and its ecosystem. The shift to an open source project was crucial in this change process. Especially, since the community adoption has been tremendous.

According to Dwight Merriman, the current chairman and co-founder of MongoDB:

"Our open source platform has resulted in MongoDB being downloaded 8 million times within the five years since the project has been available—that's an extremely fast pace for community adoption."

Furthermore, MongoDB Inc. launched products and services to support this community and enrich the MongoDB ecosystem. Among them are:

  • MongoDB Enterprise: A commercial support for MongoDB

  • MongoDB Management Service: A SaaS monitoring tool

  • MongoDB University: An EdX partnership that offers free—yes, it's free—online training

In the same way the NoSQL movement followed the growth of MongoDB, to meet both the challenges and opportunities of what might be referred to as Web 2.0, the NoSQL movement has grown substantially.