[
https://issues.apache.org/jira/browse/CAMEL-12185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16340220#comment-16340220
]
ASF GitHub Bot commented on CAMEL-12185:
----------------------------------------
GitHub user fhassak opened a pull request:
https://github.com/apache/camel/pull/2193
CAMEL-12185 - Camel-MongoDB : add option outputType for aggregate operation
New option for aggregate operation :
- camel-mongodb : `outputType=DBCursor`
- camel-mongodb3 : `outputType=MongoIterable`
Please review documentation...
cc @csarrazi
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fhassak/camel CAMEL-12185
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2193.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2193
----
commit c4f247936df37b7cf9728ef8fa1c0adeec65d8cf
Author: Farès Hassak <fares.hassak@...>
Date: 2018-01-20T18:20:26Z
CAMEL-12185 - Camel-MongoDB : add option outputType for aggregate operation
----
> 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
> 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)