Authors: Udit, Mohan, Abhimanyu
Unbxd team attended the MongoDB conference in Bangalore on Friday. We were so excited afterwards that we wanted to write it up and let the world know how much fun we had.
Here are some of the things that got us excited.
Geo-Spatial Data
- MongoDB supports storage of lat/long values. Plus, it offers querying support using these values. Provides expressions such as:
- $near– near a given lat long values
- $within — within a region, given a specific lat long values.
- Region can also be selected e.g if you want to consider a rectangle, circular region etc. around the given lat long values.
- Provides support for indexing of these lat long values.
- Some new features are out in Rel-2.2 of MongoDB:
- Pipeline: This is a Unix like support to pipe the output of a specific aggregation operation as input to subsequent aggregate operation. This pipeline can be extended to more than 3 operations in series. (donât know the max no. of ops allowed).
- New framework has expressions defined to carry out ops like: $avg, $sum, $sort, $skip, $limit, $group, $project, $match & few more.
- Upcoming feature where aggregated output will be sent directly to a collection. There will be no need to perform insert from our end. Expected in Rel 2.4 in winter 2012. This will be helpful for us as it might make it easy to create joins of tables in MongoDB a bit.
- Using explain() in Mongo shell. Specifies time to return results, usage of index etc.
- Mongo profiler, can be configured to log slow queries.
- MMS (Mongo Monitoring service)
- mongostats etc.