O'Reilly logo

Lift Application Development Cookbook by Gilberto T. Garcia Jr.

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 7. Working with MongoDB

In this chapter, we will cover the following recipes:

  • Connecting to MongoDB using Record
  • Mapping a MongoDB collection to a Scala class
  • Mapping embedded objects
  • Mapping referenced objects
  • Querying with Rogue

Introduction

NoSQL databases are very common nowadays. This is because they focus on having low latency and high throughput. This is very important due to the high volume of data that some applications have to deal with.

One of the popular NoSQL databases is MongoDB, an open source document database that is written in C++ and that stores data in the binary form of JSON objects, BSON. MongoDB has some features such as supporting autosharding which mean that it can scale horizontally, and support GridFS, which is a specification ...

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