Is there a way to retrieve only documents from CouchDB where the number of revisions matches a certain criteria (e.g. > 1)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can build a map/reduce view keyed on the
_revfield. This field is currently an integer of the revision count, plus a checksum of the contents:297-0d7aa4331b85426b4ce3bbaa2131280f.This is subject to change at any time
The revision format has changed before and could change again. So to use this field is a little risky. However, I’ve used it myself I emitted a key of the checksum part, to have a view of all documents, shuffled.