jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Nuescheler" <david.nuesche...@gmail.com>
Subject Re: best practice - node view count
Date Tue, 21 Feb 2006 10:48:20 GMT
hi togeir,

if i understand you correctly you are looking to store how many times
a particular node is "displayed" in an application.

personally, i think this is an application specific feature that since
semantically the definition of "view" or "display" is not identical
with the actual numer of times that the getNode() or similar is called.

i would suggest to implement it as a mixin "myapp:Countable"
or something and increment the "counter" property whenever
the respective event occurs.

of course this generates a bit of overhead since the repository
will fire observation events or re-index the modified content.
but then again this may exactly be what you want, to generate
something like a 10-ten most frequently view nodes...


View raw message