incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Bardubitzki <step...@bardubitzki.com>
Subject Re: Tracking doc access
Date Fri, 15 Mar 2013 02:16:34 GMT
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" <stephan@bardubitzki.com>
> To: "user@couchdb.apache.org" <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
>


Mime
View raw message