MongoDB Data Modeling

Focus on data usage and better design schemas with the help of MongoDB

MongoDB Data Modeling

This ebook is included in a Mapt subscription
Wilson da Rocha França

1 customer reviews
Focus on data usage and better design schemas with the help of MongoDB
$0.00
$10.00
$24.99
$29.99p/m after trial
RRP $19.99
RRP $24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782175346
Paperback202 pages

Book Description

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.

Table of Contents

Chapter 1: Introducing Data Modeling
The relationship between MongoDB and NoSQL
Introducing NoSQL (Not Only SQL)
Database design and data modeling
Summary
Chapter 2: Data Modeling with MongoDB
Introducing documents and collections
Characteristics of documents
Designing a document
Common document patterns
Summary
Chapter 3: Querying Documents
Understanding the read operations
Introducing the write operations
Summary
Chapter 4: Indexing
Indexing documents
Creating special indexes
Summary
Chapter 5: Optimizing Queries
Understanding the query plan
Summary
Chapter 6: Managing the Data
Operational segregation
Capped collections
Data self-expiration
Summary
Chapter 7: Scaling
Scaling out MongoDB with sharding
Scaling a social inbox schema design
Summary
Chapter 8: Logging and Real-time Analytics with MongoDB
Log data analysis
What we are looking for
Designing the schema
Summary

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

Authors

Table of Contents

Chapter 1: Introducing Data Modeling
The relationship between MongoDB and NoSQL
Introducing NoSQL (Not Only SQL)
Database design and data modeling
Summary
Chapter 2: Data Modeling with MongoDB
Introducing documents and collections
Characteristics of documents
Designing a document
Common document patterns
Summary
Chapter 3: Querying Documents
Understanding the read operations
Introducing the write operations
Summary
Chapter 4: Indexing
Indexing documents
Creating special indexes
Summary
Chapter 5: Optimizing Queries
Understanding the query plan
Summary
Chapter 6: Managing the Data
Operational segregation
Capped collections
Data self-expiration
Summary
Chapter 7: Scaling
Scaling out MongoDB with sharding
Scaling a social inbox schema design
Summary
Chapter 8: Logging and Real-time Analytics with MongoDB
Log data analysis
What we are looking for
Designing the schema
Summary

Book Details

ISBN 139781782175346
Paperback202 pages
Read More
From 1 reviews

Read More Reviews