Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12185

mongodb - Add option outputType=DBCursor for aggregate operation

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21.0
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                fhassak Farès Hassak
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: