We should be able to get aggregation results out via a cursor as if they were a regular query.
GetMore shouldn't swallow errors
Support Aggregate Command Returning a Cursor
Aggregation command can optionally return a cursor
Support aggregation output as a cursor
Support aggregation output as a cursor.
aggregation: unsharded support $out
aggregation: support $out on a sharded cluster
Document cursor based aggregation
system for commands to return cursors
This is crucial for any sizeable collection. Otherwise it may require reissuing the aggregation pipeline multiple times in order to page through the results. This is terribly inefficient.
Is there an ETA on this feature?
This is currently planned for the 2.6 release.
Message: SERVER-10134 Report errors during GetMore processing
This is necessary for SERVER-5932 (aggregation returning cursors)
Message: SERVER-5932 Aggregation returning a cursor
SERVER-8261 System for commands to return cursors
SERVER-10165 aggregate() helper should return cursor
Unit test is failing in debug mode
Message: SERVER-5932 Fix use after free
BuildBot ticket: SERVER-10200
Message: Support cursors returned from sharded aggregation
Follow-up to SERVER-5932
This feature is released on the dev branch. Initial documentation can be found here: http://docs.mongodb.org/manual/release-notes/2.6/#aggregation-operation-may-return-a-cursor