[
https://issues.apache.org/jira/browse/CAMEL-12185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino reassigned CAMEL-12185:
----------------------------------------
Assignee: Andrea Cosentino
> mongodb - Add option outputType=DBCursor for aggregate operation
> ----------------------------------------------------------------
>
> Key: CAMEL-12185
> URL: https://issues.apache.org/jira/browse/CAMEL-12185
> Project: Camel
> Issue Type: New Feature
> Components: camel-mongodb, camel-mongodb3
> Reporter: Farès Hassak
> Assignee: Andrea Cosentino
> Priority: Major
>
> Hello,
> The aggregate operation load all results from the driver's cursor into a List
> which may result in a large number of in-memory objects.
> There is no option {{outputType=DBCursor}} applies to aggregate, only to
> findAll.
> So, adding this option is necessary to avoid loading all documents in memory.
> The following headers will be added {{CamelMongoDbBatchSize}} to limits the
> number of elements returned per batch.
> Farès
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)