Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Eager vs Lazy produces different results
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Daryl Stultz  
View profile  
 More options Mar 4 2010, 4:27 pm
From: Daryl Stultz <kungfumachin...@gmail.com>
Date: Thu, 4 Mar 2010 13:27:16 -0800 (PST)
Local: Thurs, Mar 4 2010 4:27 pm
Subject: Re: Eager vs Lazy produces different results

On Mar 4, 3:37 pm, Rob Bygrave <robin.bygr...@gmail.com> wrote:

> So, lets say each customer had tens of thousands of Orders
> you have some work to do to find
> the list of unique customers first and then ...

Yes, I understand the challenge. As I said, when I first found that
JPA did NOT filter the list I was surprised - you always get the whole
list. Likewise, I was surprised that Ebean filtered the list. I
definitely see it being useful to filter the list. My main point here
is that I didn't *think* I was asking for a filtered list. Sometimes
you want it one way, sometimes the other, and it needs to be clear
what will happen. Perhaps the default should be to load it all to be
consistent with JPA and JoinConfig should be used to specify that it
should be filtered. Not sure that's the "Ebean way" to do it, but you
see what I mean.

> > JoinConfig().query() ...

> Hmmm, I'll have a look at that (I'd suggest that is a bug).

Yes, that's the second part of my complaint - eager does not produce
the same as lazy. It seems like it would be easier to make eager
return all than lazy return filtered, but that's your problem,
right? :-)

I'll try to put together a JPA example tonight.

/Daryl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.