If you read my posts, you know that I'm a big fan of MongoDB Aggregation Framework. It was brand new in 2.2 over a year ago and last year in 2.4 release it got faster and picked up some cool new features. The next production release is 2.6 and aggregation framework continues growing up as a major feature of MongoDB. Since MongoDB 2.6.0 is now available, I thought I would point out some of the coolest improvements that will make aggregation even simpler and more powerful.
If you want to see the complete list of SERVER tickets fixed for 2.6, it's HERE. A more readable summary is in the release notes for 2.6.
If you want to see the complete list of SERVER tickets fixed for 2.6, it's HERE. A more readable summary is in the release notes for 2.6.
The biggest and baddest is SERVER-5932, support for aggregations returning a cursor. Some think that SERVER-3253 is the biggie, that's the one that allows you to redirect the output of of aggregation to another collection (and its cousin SERVER-10097 that allows you the same capability on a sharded cluster). But if you ask me, getting back a cursor pointing to the results, so I can iterate over it the same way we already do over results from find(), that's the more important one and if I want to, I can then send the results to another target collection (or some other place), so I've been most excited about that. Needless to say, this makes the old limitation of aggregation returning only 16MB history.
Of course there are many other new features, from major ones or minor ones. I'm sure you'll be seeing them show up in my future posts as I think of new and novel ways of torturing documents into new shapes, forms and uses!