O'Reilly logo

MongoDB in Action, Second Edition: Covers MongoDB version 3.0 by Peter Bakkum Kyle Banker Shaun Verch, Douglas Garrett, and Tim Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Document-oriented data

This chapter covers

  • Schema design
  • Data models for e-commerce
  • Nuts and bolts of databases, collections, and documents

This chapter takes a close look at document-oriented data modeling and how data is organized at the database, collection, and document levels in MongoDB. We’ll start with a brief, general discussion of how to design schemas to use with MongoDB. Remember, MongoDB itself doesn’t enforce a schema, but every application needs some basic internal standards about how its data is stored. This exploration of principles sets the stage for the second part of the chapter, where we examine the design of an e-commerce schema in MongoDB. Along the way, you’ll see how this schema differs from an equivalent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required