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 8929565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:42:00+00:00 2026-06-15T08:42:00+00:00

Actually, I use map reduce to make some calculations. I can’t do that with

  • 0

Actually, I use map reduce to make some calculations.
I can’t do that with the aggregation framework because there is no available pipeline operators for my calculations.

Is it possible to write custom pipeline operators?

Thanks in advance

  • 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-15T08:42:01+00:00Added an answer on June 15, 2026 at 8:42 am

    The answer will depend on your definition of “possible”:

    1) Out of the box: NO.

    As at MongoDB 2.2 there is no end user feature to allow you to add new pipeline operators. The Aggregation Framework and pipeline operators are implemented in C++ for improved performance and concurrency over earlier aggregation options such as MapReduce (which is implemented in JavaScript).

    2) If you want to write one in C++: YES (but not trivial).

    MongoDB is an open source project, so you do have the option of diving into the C++ code and implementing additional functionality yourself (see: src/mongo/db/pipeline). Note that there are guidelines on Contributing to the MongoDB project and ongoing development is extremely active.

    If you want to write custom functions, your best option at the moment is to continue using MapReduce.

    Regardless of the above options, if there is a pipeline operator or feature you’d like to see please do suggest it in the MongoDB Jira SERVER project (component: Aggregation Framework). This will allow others to comment, watch, and vote on the feature request .. and if you do end up implementing the feature yourself you can reference the Jira feature description in your pull request. Before submitting a new feature request, you should also search to see if perhaps this feature has already been suggested.

    For example, there are already requests such as:

    • SERVER-4929: $group should have a $median accumulator

    • SERVER-5044: $stdDev aggregation operator for standard deviation

    • SERVER-7463: More operators for Aggregation Framework (percentile, top)

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

Sidebar

Related Questions

the map reduce examples I see use aggregation functions like count, but what is
What I would like to do there is declaring class variables, but actually use
i need some help in addition to android-layouts. For eyample: Actually I use a
Really quick/simple question that will determine which map API i use for my project.
I have some dynamic int * arrays that I would like to use as
In CouchDB you always have to use map reduce to query results. In MongoDB
I have a small program that batch handles files. These files use a map
I actually use a combination of OS X, Linux and Windows, but Windows is
Is it possible to actually use the type passed as a template for control
Just wondering when do you actually use $.get(index); I am a bit confused on

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.