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

mongodb - Add option outputType=DBCursor for aggregate operation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.21.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: