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

  • Home
  • SEARCH
  • 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 7087119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:38:04+00:00 2026-05-28T07:38:04+00:00

Can CouchDB’s filtered replication be set to replicate not only the most recent version

  • 0

Can CouchDB’s filtered replication be set to replicate not only the most recent version of every document, but also the last 100 revisions of each document?

I want this feature, because I intend to allow each app instance to pick which recent revision (revisions will be coming from multiple sources, each having a different level of accuracy/trustworthiness) is the most accurate, so I need more than one revision available in each database instance.

The specific use-case is as follows:

CouchApp 1 contains a database of data on all congregations of one Reformed denomination.

CouchApp 2 contains a database of data on all congregations in all Reformed denominations worldwide.

CouchApps 1 & 2 are set up to replicate bidirectionally to keep in sync with each other, but CouchApp 1 requests only one denomination’s data from CouchApp 2’s denomination replication filter.

User 1 is anonymous, so relatively untrusted, and user 2 is the admin of CouchApp2, so has a high level of authority/trustworthiness. Both CouchApps are set to trust recent data 2/3 more than authoritative data.

First (in the order of time), authoritative user 2 enters 10 revisions of congregation data about congregation 1 into CouchApp 2 (all denominations).
Second (in the order of time), anonymous user 1 enters 10 revisions of congregation data about congregation 1 into CouchApp 1 (one denomination).

Bidirectional replication occurs.

CouchApp 2 (all denominations) displays user 1’s data by default, because that data is more recent. But, because user 1 only entered some (but not all) fields of congregation 1’s data, CouchApp 2 displays user 2’s data for all the other fields.

I’m open to being told it’s not worthwhile for an app to replicate more than one revision, or to evaluate the accuracy of users’ input after replication (it could be done before replication instead), or to evaluate that accuracy at all.

  • 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-05-28T07:38:05+00:00Added an answer on May 28, 2026 at 7:38 am

    Sorry, you cannot replicate old revisions directly. The _rev number’s sole purpose is for MVCC and not designed for tracking revision history. That being said, it’s not impossible to do this.

    Consider storing old revisions as JSON attachments on a document itself. This will have them replicated right along with the rest of the document. In addition, there are other strategies that people have devised for conquering this problem. (Google around and you can probably find even more)

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

Sidebar

Related Questions

How can I retrieve document from CouchDB based on its field, not by ID?
How can I get the fields for a couchdb document? I'm thinking of how
I searched and didn't found, can I delete a field of a couchdb's document
Using CouchDB , I currently have a document which represents an idea, you can
I have searched for this but did not get proper answer if we can
Can I replicate a CouchBase datbase running on Android to a CouchDB (1.1) server
I've heard that CouchDB can replicate to desktop browsers, such as: http://www.youtube.com/watch?v=Na2yApM9ydw How can
Since CouchDB has very few API documentation (at least I can not find it),
Is there anyway we can use Google App Engine but do not use google's
Though I use CouchDB-specific JQuery verison, the problem can appear to be not related

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.