jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: hasProperty vs getProperty
Date Tue, 12 Jun 2012 15:28:52 GMT
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 :-)

Best regards, Julian

View raw message