Chapter 5. Advanced Operations

In this chapter, we will cover the following recipes:

  • Atomic find and modify operations
  • Implementing atomic counters in MongoDB
  • Implementing server-side scripts
  • Creating and tailing capped collection cursors in MongoDB
  • Converting a normal collection to a capped collection
  • Storing binary data in MongoDB
  • Storing large data in Mongo using GridFS
  • Storing data to GridFS from a Java client
  • Storing data to GridFS from a Python client
  • Implementing triggers in MongoDB using oplog
  • Executing flat plane (2D) geospatial queries in Mongo using geospatial indexes
  • Spherical indexes and GeoJSON-compliant data in MongoDB
  • Implementing a full-text search in MongoDB
  • Integrating MongoDB with Elasticsearch for a full-text search

Introduction

In Chapter 2, Command-line Operations and Indexes, we saw how to perform basic operations from the shell to query, update, and insert documents. We also explored different types of indexes and index creation. In this chapter, we go ahead and see some of the advanced features of Mongo, such as GridFS, geospatial indexes, and full-text search. Other recipes we will see include an introduction to capped collections and their uses and implementing server-side scripts in MongoDB.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset