jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chetan Mehrotra <chetan.mehro...@gmail.com>
Subject Re: permission store & rep:modCount
Date Tue, 04 Mar 2014 14:37:54 GMT
FWIW DocumentNodeStore maintains a property '_modCount'  on a per node
basis and it can possibly be exposed as part of NodeStore as a hidden

And that can be used to maintain the cache. DocumentNodeStore itself
internally relies on this to keep its caches in consistent state
Chetan Mehrotra

On Fri, Feb 28, 2014 at 7:52 AM, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Hi,
> On Thu, Feb 27, 2014 at 4:46 PM, Tobias Bocanegra <tripod@apache.org> wrote:
>> the current implementation allows to read all ACLs for a given
>> principal very efficiently at once with no false hasNode() accesses.
> Good point.
> To avoid has/getNode() misses (that can be expensive with MongoMK) in
> the proposed alternative, it would probably be a good idea to store a
> :hasPermissions flag property (or something similar) in each node with
> an ACL attached to it. Such a property could even be something like
> :permissionModCount in case in-memory caching (and cache invalidation)
> is still needed.
> BR,
> Jukka Zitting

View raw message