Focus on data usage and better design schemas with the help of MongoDB
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.
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.
What You Will Learn
Optimize your models based on priorities
Discover the schemaless document-oriented database design
Improve the process of querying a document with the help of indexing
Set up a sharded environment with replication
Configure the read preference in accordance with your application's requirements
Create effective indexes that will fit your application needs
Understand how to analyze the performance of your queries to avoid performance issues
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.