• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fetch Only Non-Empty To-Many
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Fetch Only Non-Empty To-Many (From: Hunter Hillegas <email@hidden>)
 >Re: Fetch Only Non-Empty To-Many (From: David Elsner <email@hidden>)
 >Re: Fetch Only Non-Empty To-Many (From: Hunter Hillegas <email@hidden>)
 >Re: Fetch Only Non-Empty To-Many (From: Hunter Hillegas <email@hidden>)
 >Re: Fetch Only Non-Empty To-Many (From: Art Isbell <email@hidden>)

  • Prev by Date: Java Design Question
  • Next by Date: Re: Secure WOHyperlink puts :443 in URL
  • Previous by thread: Re: Fetch Only Non-Empty To-Many
  • Next by thread: WOHyperlink Passing a value back...
  • Index(es):
    • Date
    • Thread