Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60DDD104DE for ; Mon, 17 Feb 2014 06:53:54 +0000 (UTC) Received: (qmail 83187 invoked by uid 500); 17 Feb 2014 06:53:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 82815 invoked by uid 500); 17 Feb 2014 06:53:51 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 82807 invoked by uid 99); 17 Feb 2014 06:53:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Feb 2014 06:53:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jens@couchbase.com designates 206.225.164.31 as permitted sender) Received: from [206.225.164.31] (HELO EXHUB020-4.exch020.serverdata.net) (206.225.164.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Feb 2014 06:53:46 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.179]) by EXHUB020-4.exch020.serverdata.net ([206.225.164.31]) with mapi; Sun, 16 Feb 2014 22:53:23 -0800 From: Jens Alfke To: "user@couchdb.apache.org" Date: Sun, 16 Feb 2014 22:53:23 -0800 Subject: Re: History tracking as a plugin? Thread-Topic: History tracking as a plugin? Thread-Index: Ac8rrPNJf1Elr7+VStCImlCRxvFRlg== Message-ID: <2F2D15E9-2302-446D-A0EF-B08226B2FA6F@couchbase.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Feb 16, 2014, at 9:50 PM, Suraj Kumar wrote: > While we could use "_changes" API, there is no > way to get the UserCtx. This is the real limitation of changes API due to > which we are looking for other ways. It's not a limitation of the changes API, it's a limitation of the database= itself. CouchDB simply does not store the information you're asking for, s= o there's no way for the changes API to discover it. > What would you recommend is the best way to achieve history tracking? Maybe put some kind of proxy in front of CouchDB that can modify the docume= nts on the way in, to add properties storing the time and username? =97Jens=