Re: Fetch Only Non-Empty To-Many
Re: Fetch Only Non-Empty To-Many
- Subject: Re: Fetch Only Non-Empty To-Many
- From: Michael Parlee <email@hidden>
- Date: Wed, 9 Jun 2004 20:51:34 -0700
How about mapping a derived column to "count (select * from child.table
where foreign_key = t0.primary_key)". This should execute very quickly
as it returns only the integer result. Then just write your expression
to test for childCount=0.
You still end up with DB specific code but you can still take advantage
of your EOs and existing code.
Mike
On Jun 9, 2004, at 3:17 PM, Art Isbell wrote:
>
> There are other approaches (e.g. raw fetching) that could also be
> used, but I don't know of anything parti
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.