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)

Summary


In this chapter, you saw how to build documents in MongoDB, examined their characteristics, and saw how they are organized into collections.

You now understand how important it is to already know the domain of the application in order to design the best models possible, and you saw some of the patterns that can help you to decide how to design your documents.

In the next chapter, we will see how to query these collections and modify the data that stored in them.