Re: modeling question for a to-many relationship subset.
Re: modeling question for a to-many relationship subset.
- Subject: Re: modeling question for a to-many relationship subset.
- From: David Avendasora <email@hidden>
- Date: Wed, 4 Aug 2010 09:56:33 -0500
Until you see that it is a performance issue (don't spend time optimizing until something is proven to be a bottleneck) I would simply use the eogenerated method:
so if you have this relationship Conference ->> Session
on an instance of Conference use:
sessions(IS_LAB.isTrue());
Very simple, easy to read and WO will take care of using caches and such if available.
Dave
On Aug 3, 2010, at 2:20 PM, James Cicenia wrote:
> I have a to-many relationship.
> The destination object has a simple boolean.
>
> What is the best/fastest/freshest way to retrieve a subset depending on the boolean?
>
> a) Filter the relationship in memory?
> b) do a fetch?
> c) Create another "vertical" relationship?
> d) A View?
> 3) other?
>
> thanks
> James _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden