• 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: EOModeler and more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModeler and more


  • Subject: Re: EOModeler and more
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 12 Jan 2004 12:51:47 -0800
  • Organization: Global Village Consulting, Inc.

james cicenia wrote:

The following has me confused.

Should I not use fetch specs? In other words, while all my objects are looking good and all my relationships clean are
clean should I use fetch specs or should I just get all the objects through the relationship and then filter them programatically?


You have to do at least one fetch to have objects to follow relationships from. Generally following relationships is better, but it can be impractical at times. At fetch is most useful for getting a set of objects as a starting point for future navigation. One thing to be wary of when following relationships is to use batch faulting if there are many related objects. Otherwise you may get one DB trip per object which is rather slow.


Or, is there a secret when creating relationships that will select a subset.

Only if you are using inheritance and I'd guess that is not appropriate for what you are thinking.


I of course want to take advantage of caching. Also, only after clicking on a request would I need to worry about updates.

With EOF you never need to worry about updates, just update conflicts. :-)

Chuck


-James

On Jan 12, 2004, at 2:16 PM, Chuck Hill wrote:

Arturo Pirez wrote:

BTW, no fetch spec result is cached. That will always go to the database. I'm not certain if
the resultant objects are cached or not. So I try to write things such that I only go through
relationships. Those are cached and offer amazing performance. But it's not always possible.

If the fetch is marked as refreshing refetched objects then the newly fetched rows will update the cache. Otherwise only the PK (and Entity, restricting value) is used to identify the snapshots already cached.


Chuck




--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net

Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
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: 
 >EOModeler and more (From: james cicenia <email@hidden>)
 >Re: EOModeler and more (From: Arturo Pérez <email@hidden>)
 >Re: EOModeler and more (From: james cicenia <email@hidden>)
 >Re: EOModeler and more (From: Arturo Pérez <email@hidden>)
 >Re: EOModeler and more (From: james cicenia <email@hidden>)
 >Re: EOModeler and more (From: Arturo Pérez <email@hidden>)
 >Re: EOModeler and more (From: james cicenia <email@hidden>)
 >Re: EOModeler and more (From: Arturo Pérez <email@hidden>)
 >Re: EOModeler and more (From: Chuck Hill <email@hidden>)
 >Re: EOModeler and more (From: james cicenia <email@hidden>)

  • Prev by Date: Limiting number of assignments in a many-to-many relationship
  • Next by Date: Question on multi-language presentation
  • Previous by thread: Re: EOModeler and more
  • Next by thread: Re: EOModeler and more
  • Index(es):
    • Date
    • Thread