> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dain
> Sundstrom
> Sent: Monday, June 25, 2001 11:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-dev] CMP 2.x Quick How-to
>
>
>
>
> > Dain,
> >
> > I've read your email on how to use the eager/lazy loading features. I'm
> not
> > sure if this is the same thing as danch's <read-ahead> feature. Your
> > eager/lazy loading seems to be focused around LoadEntity, where danch's
> > read-ahead happens on the finder call itself. I really should examine
> your
> > code(sorry, too lazy at the moment), but eager/lazy loading seems to
> > optimize on limiting what field you load from the database,
> where danch's
> > read-ahead deals with when do you read a beans fields. With read-ahead
> > there is no longer n + 1 select calls when doing a finder call then
> > subsequently accessing the beans returned by the finder. Do your
> > optimizations take this into account?
> >
>
> I have not included the pre-load logic that dan wrote
> <read-ahead>. I will
> look into this when I write the EJB-QL code. With read ahead you load all
> the rows of the data with one select statement (maybe two...). The
FYI, only one select statement is invoked now, NOT two. Cool stuff BTW.
Bill
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development