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)

What we are looking for


The information extracted from a web server access log is very rich and give us good material for infinite possibilities of study. Being simple and direct, it is possible to count the number of requests that our web server receives just by counting the number of lines that the access log has. But we can expand our analysis and try to measure the average of the data traffic in bytes over the time, for example.

Recently, one of the most widely used services is the application performance management system, also known as APMs. Nowadays, these services are commonly offered as software-as-a-service and the main goal is to give us a view of an application's performance and health.

APMs are a good example of what can be analyzed based on the information extracted from the access log, due to the fact that a good part of the information that APMs generate is based on the access logs.

Attention! I am not saying that an APM works based only on the access log, but a good part of...