• 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: Using qualifier with pre/batch fetch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using qualifier with pre/batch fetch?


  • Subject: Re: Using qualifier with pre/batch fetch?
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 16 Mar 2009 10:18:57 -0700


On Mar 15, 2009, at 12:54 PM, Jeff Schmitz wrote:

Hello,
I was wondering if there were a way to specify a qualifier on a to- many relationship in a batch fetch (ERXBatchFetchUtilities) or prefetch command? I see you can specify the key paths, but what if I only want to pre/batch fetch rows based on some qualifier for a key path, instead of just getting them all pre-loaded? Or would the possible time savings to do this not worth the effort? What if say you have 10000 total rows to be fetched, but you only really need 5000 of them based on some qualifier?

That is not what prefetching and batch fetching are for. You want a qualified fetch, so you will need to make another fetch spec. BUT if you have A ->> B and fetch A and a subset of the B relationship, if you ever touch a.b() in code, the rest of the objects will be fetched as faults.


Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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
References: 
 >Using qualifier with pre/batch fetch? (From: Jeff Schmitz <email@hidden>)

  • Prev by Date: Re: WOFrameworksBaseURL - SOLVED
  • Next by Date: Re: WoMonitor "Failed to contact ..."
  • Previous by thread: Using qualifier with pre/batch fetch?
  • Next by thread: SimpleDB and EOF
  • Index(es):
    • Date
    • Thread