Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9201467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:00:56+00:00 2026-06-17T23:00:56+00:00

I built a MongoDB. I want to do aggregation by certain grouping. I found

  • 0

I built a MongoDB. I want to do aggregation by certain grouping. I found this document, which will do that for me. Everything is ok, but certain limitations are pointed out:

  1. Output from the pipeline can only contain 16 megabytes. If your result
    set exceeds this limit, the aggregate command produces an error.

  2. If any single aggregation operation consumes more than 10 percent of
    system RAM the operation will produce an error.

  3. The aggregation system currently stores $group operations in memory,
    which may cause problems when processing a larger number of groups.

How many rows / documents can I process with MongoDB aggregation? I am afraid to use this. Can anyone guide me about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:00:57+00:00Added an answer on June 17, 2026 at 11:00 pm

    I got valid and helpful answer from google groups. Would like to share with you all.

    The limitation is not on the number of documents: the limitation is on the amount of memory used by the final result (or an intermediate result).

    So: if you aggregate 200 000 documents but the result fits into the 16MB result, then you’re fine. If you aggregate 100 documents and the result does not fit into 16 MB, then you’ll get an error.

    Similarly, if you do a sort() or a group() on an intermediate result, and that operation needs more than 10% of available RAM, then you’ll get an error. This is only loosely related to how many documents you have: it’s a function of how big the particular stage of the pipeline is.

    Can i increase 16MB via any settings?

    Is 16MB limitation only for End-Result OR Is that for that particular
    aggregation (means, intermediate results + any temporary holdings +
    End result)?

    The 16MB limit is not adjustable. This is the maximum size of a document in MongoDB. Since the Aggregation framework is currently implemented as a command, the result from the aggregation must be returned in a single document: hence the 16 MB limit.

    see this post

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We decided to use mongodb for some web application (instead of mysql) but want
I'm building an app which pulls records from a MongoDB. I've built the thead>tr>th
I built a website and then deploy it on the server. But when i
Ive built a little jquery sliding div on my website that when you hover
I built a linear layout inside of a dialog , the problem here that
I'm trying to build a Grails App. I want the user who installs this
I have an application that lets users build things in JS. I want the
I believe this is some scope/variable access issue but I am not sure about
I have a web service application built using NodeJS. I am using mongodb as
I've built a NodeJS application using mongoose and express. This application exposes resources in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.