Chapter 5. Advanced Operations

In this chapter, we will cover the following recipes:

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

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, and also saw different types of indexes and index creation. In this chapter, we will 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 and use of capped collections 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