jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: AW: Re: Loading Node without loading Binary Data
Date Thu, 14 Jun 2007 12:51:19 GMT
On 6/14/07, Christoph Kiehl <ck@sulu3000.de> wrote:
> Jukka Zitting wrote:
> > Hi,
> >
> > On 6/14/07, Christoph Kiehl <ck@sulu3000.de> wrote:
> >> If you didn't change the default your binaries (which are bigger than
> >> 4096 bytes) will be stored separate from the bundle. That means if you
> >> do nextNode() only the bundle without the binary should be loaded. As
> >> long as you do not access the binary property with
> >> node.getProperty(<name>) or node.getProperties() the binary will not be
> >> loaded. (Please correct me if I'm wrong)
> >
> > Note that the default bundle persistence manager will do a SELECT from
> > the binval table when the node that contains a binary property is
> > loaded. The blob is then turned into a BLOBFileValue that
> > automatically spools the binary stream into a local temporary file.
> > :-(
>
> Ouch! This sounds like a serious problem. I didn't know that. What's the
> reason then to save binaries separate from the bundle?

note that jukka's stmt only applies to the bundle db pm.
SimpleDbPersistenceManager (and derived classes) doesn't preload
properties on parent node load.

cheers
stefan

>
> Cheers,
> Christoph
>
>

Mime
View raw message