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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:05:07+00:00 2026-06-06T17:05:07+00:00

I am reading the O’Reilly CouchDB book. I am puzzled by the reduce/re-reduce/incremental-MapReduce part

  • 0

I am reading the O’Reilly CouchDB book. I am puzzled by the reduce/re-reduce/incremental-MapReduce part on page 64. Too much is left to rhetory in the O’Reilly book with the sentence

If you’re interested in pushing the ede of CouchDB’s incremental reduce functionality, have a look at Google’s paper on Sawzall, …

If I understand the word “incremental” correctly, it refers to some sort of addition -operation in the B-tree data structure. I cannot yet see why it is somehow special over typical map-reduce, probably not yet understanding it. In CouchDB, it mentions that there is no side-effects with map function – does that hold true with reduce too?

Why is MapReduce in CouchDB is called “incremental”?

Helper questions

  1. Explain the quote about incremental MapReduce with Sawzall.
  2. Why two terms for the same thing i.e. reduction? Reduce and re-reduce?

References

  1. A Google paper about Sawzall.
  2. Introduction to CouchDB views in the CouchDB wiki and a lot of blurry blog references.
  3. CouchDB O’Reilly book
  • 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-06T17:05:09+00:00Added an answer on June 6, 2026 at 5:05 pm

    This page that you linked explained it.

    The view (which is the whole point of map reduce in CouchDB) can be updated by re-indexing only the documents that have changed since the last index update. That’s the incremental part.

    This can be achieved by requiring the reduce function to be referentially transparent, which means that it always returns the same output for a given input.

    The reduce function also must be commutative and associative for the array value input, which means that if you run the reducer on the output of that same reducer, you will receive the same result. In that wiki page it is expressed like:

    f(Key, Values) == f(Key, [ f(Key, Values) ] )
    

    Rereduce is where you take the output from several reducer calls and run that through the reducer again. This sometimes is required because CouchDB sends stuff through the reducer in batches, so sometimes not all keys that need to be reduced will be sent through in once shot.

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

Sidebar

Related Questions

Reading the MCIMX50 Application Processor Reference Manuals on page 1368 (Section 33.3) there is
Reading the Scala by Example book and there is this example when Martin explains
I am reading a book about Javascript and jQuery and using one of the
Reading Real World Haskell, on page 95 the author provides an example: myFoldl f
reading this https://developers.google.com/in-app-payments/docs/tutorial Quoted from the above page: Because you sign the JWT using
Reading a book about C# I noticed that sometimes is mentioned value type and
Reading on SQL Server Book online and my understanding SQL Server Buffer Pool or
Reading this question , I wondered how much time (asymptotically speaking) does it takes
Reading the Jon Skeet book, I have found (some time now) the use of
Reading the book VS 2010 by John Sharp, it says that generics allows to

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.