incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Hommers <>
Subject Re: Tracking doc access
Date Fri, 15 Mar 2013 02:02:05 GMT
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.


----- Reply message -----
From: "Stephan Bardubitzki" <>
To: "" <>
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?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message