O'Reilly logo

MongoDB for Java Developers by Francesco Marchioni

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 3. MongoDB CRUD Beyond the Basics

The previous chapter of this book took you through the first green bar in connecting Java and MongoDB. You learned how to perform some basic create, read, update, and delete operations using simple Java classes. It is now time to address some advanced concerns, which are part of every real work application. Here is what we are going to discuss in this chapter in detail:

  • How to map MongoDB documents in Java objects and vice versa
  • How to apply indexes to your documents to speed up searches
  • How to code bulk operations to improve the speed of your insert/updates

Seeing MongoDB through the Java lens

So far, we have had some interaction with the Java driver using com.mongodb.DBObject as a simple translator between ...

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