poiati / gmongo

A Groovy wrapper to the mongodb Java driver
http://blog.paulopoiati.com/2010/06/20/gmongo-0-5-released/
Apache License 2.0
182 stars 44 forks source link

cursor for aggregates >16MB? #27

Closed jgrivolla closed 9 years ago

jgrivolla commented 9 years ago

In the Java driver you can specify using a cursor as an AggregationOption, but I'm not sure how to do this in gmongo. By default it doesn't use a cursor, and aggregation results are therefore limited to 16MB.

poiati commented 9 years ago

You just need to pass an AggregationOption instance as the second parameter to DBCollection#aggregate gmongo method.