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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:19:09+00:00 2026-06-06T09:19:09+00:00

Apparently MapReduce queries are one of the slowest things one can do in MongoDB

  • 0

Apparently MapReduce queries are one of the slowest things one can do in MongoDB according to this and this articles.

  1. If the dataset is large then isn’t it still better to do MapReduce instead of sending the entire dataset over to client and have it processed there?

  2. Do MapReduce queries lock the database and therefore stop it from responding to other requests?

  3. I find MapReduce really logical and easy to understand while the Aggregation Framework in version 2.1 appears a little overwhelming! Is this MongoDB’s response to not having a performant MapReduce facility and therefore suggestion to move away from MapReduce altogether?

  • 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-06T09:19:10+00:00Added an answer on June 6, 2026 at 9:19 am
    1. Depends on your definition of “large”, but I’d still choose running map-reduce (on a secondary, so that primary is not blocked)

    2. Map-reduce jobs take lots of short-lived locks.

      2.1. They take read locks when they read data, this doesn’t block anything.

      2.2. They take write locks when they write data (to temp or final collection). This block other operations.

      2.3. They take JS lock whenever they need to execute javascript. Which they do execute all the time, because map and reduce functions are in javascript. Here’s a typical sequence in map phase: “take read lock, fetch document from input collection, release read lock, take js lock, apply map function to that document, release js lock, take write lock, write an entry to temp collection, release write lock”.

    3. Yes, basic idea of map-reduce is simple. But I find aggregation pipeline as simple. Maybe even simpler. “Take this data, apply this array of transformations to it, I’ll take the result”. What could be simpler?

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

Sidebar

Related Questions

Apparently #filter_chain is deprecated, does anyone know how? I've tried several things, but can't
Apparently, I can't find any help on this. I have a scenario where I
Apparently with Android 2.3.4 and 3.1 one can now access USB accessories. I have
Apparently (at least according to gcc -std=c99 ) C99 doesn't support function overloading. The
Apparently, this does not work. WHY ??????? I don't want to do all this
Apparently, I can't use them. I'm getting an error message like: Invalid use of
Apparently many people have run into this problem, but I have yet to be
Apparently, you can't call apply with a record constructor: (defrecord Foo. [id field]) (apply
Apparently the font Arvo is supposed to work fine in IE, but I can't
Apparently this Tomcat data source gets registered in JNDI. The crystal reports API will

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.