jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bart van der Schans <b.vandersch...@onehippo.com>
Subject Re: hasProperty vs getProperty
Date Wed, 13 Jun 2012 10:23:56 GMT
On Tue, Jun 12, 2012 at 5:28 PM, Julian Reschke <julian.reschke@gmx.de> wrote:
> On 2012-06-12 16:40, Bart van der Schans wrote:
>> ...
>> It's a quite common pattern. Once the node is loaded in the
>> BundleCache (or an item/session cache) the hasProperty and getProperty
>> calls are not that expensive. A call to the persistence layer to fetch
>> the node data is much more expensive. If it is a performance hit in
>> your case, do you have some profiler logs or benchmarks?
>> ...
> I'm looking at JCR-2950 and have the impression that the pair of calls
> causes duplicate ACL checks.
> And yes, we may want to find out why those happen.
> But in my experience the best way to optimize is to avoid unnecessary calls,
> not to make doing them less expensive :-)

Yes of course ;-) We have our own access manager that caches the read
permissions quite efficiently so that might be why we have never
noticed a performance issue.


View raw message