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 3FD32DBF8 for ; Fri, 15 Mar 2013 02:17:05 +0000 (UTC) Received: (qmail 72062 invoked by uid 500); 15 Mar 2013 02:17:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 72020 invoked by uid 500); 15 Mar 2013 02:17:03 -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 72007 invoked by uid 99); 15 Mar 2013 02:17:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 02:17:03 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [198.235.201.13] (HELO mx-1.northwestel.net) (198.235.201.13) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 02:16:57 +0000 X-ASG-Debug-ID: 1363313793-05fac333640f470001-z14J5S Received: from [192.168.1.100] ([199.247.191.174]) by yk-mlwprd2.northwestel.ca with ESMTP id GpAkNHMLI4z1TKEH for ; Thu, 14 Mar 2013 20:16:33 -0600 (MDT) X-Barracuda-Envelope-From: stephan@bardubitzki.com X-Barracuda-Apparent-Source-IP: 199.247.191.174 Message-ID: <51428482.6080903@bardubitzki.com> Date: Thu, 14 Mar 2013 19:16:34 -0700 From: Stephan Bardubitzki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Tracking doc access References: <514271C0.3080806@bardubitzki.com> X-ASG-Orig-Subj: Re: Tracking doc access In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[199.247.191.174] X-Barracuda-Start-Time: 1363313793 X-Barracuda-URL: http://198.235.201.13:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at northwestel.net X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.8 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.125230 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Checked: Checked by ClamAV on apache.org Hi Thomas, no, I need only to track read, and I need the timestamp for some charts. Stephan On 13-03-14 07:02 PM, Thomas Hommers wrote: > Hi Stephan, > > With 'accessed' do you mean read and write ? In case you just want to track write access i believe you could use the _rev attribute. > > Regards > Thomas > > > > ----- Reply message ----- > From: "Stephan Bardubitzki" > To: "user@couchdb.apache.org" > Subject: Tracking doc access > Date: Fri, Mar 15, 2013 08:57 > > > > Hi there, > > I have a task where I need to track how often a doc is accessed. The two > possible ways I can think of are: > > 1. add an array to the doc and add the timestamp when it is accessed > 2. create a new document and add the doc._id and the timestamp > > Which one would you prefer? Or is there a better solution? > > Thanks, > Stephan > > > -------------------------------- > Spam/Virus scanning by CanIt Pro > > For more information see > http://www.kgbinternet.com/SpamFilter.htm > > To control your spam filter, log in at > http://filter.kgbinternet.com >