• 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 Spec Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetch Spec Question


  • Subject: Re: Fetch Spec Question
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 22 Jan 2004 08:31:21 -0800

A fetch goes to the database unless the Entity is marked as "Cache in
memory" in the EOModel (which is not something you want to do for most
objects).  It must go to the external datastore to determine which objects
are in the result set.  If it did not check then it would incorrectly
include / exclude objects inserted / updated . deleted by other processes.
refreshesRefetchedObjects only determines if it discards the fetched data
for objects already in the cache or uses the fetched data to update the cache.

Chuck

At 09:21 AM 22/01/2004 -0500, Dana Kashubeck wrote:
>Jonathan Rochkind wrote:
>
>> An EOFetchSpecification, passed to
>> someEditingContext.objectsWithFetchSpecification() will _always_ go to
>> the database.  There will always be a round trip to the db triggered.
>
>Won't the fetch specification still get the objects out of memory unless
>you set refreshesRefetchedObjects to YES?  My understanding is that this
>is the only way to force it to fetch from the database.
>
>--
>-------------------------------------
>Dana Kashubeck
>Systems Manager
>Riemer Reporting Service Inc.
>http://www.riemer.com
>
>Phone: 440-835-2477 x. 125
>Fax:   440-835-4594
>-------------------------------------
>_______________________________________________
>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.
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
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: 
 >Re: Fetch Spec Question (From: Jonathan Rochkind <email@hidden>)
 >Fetch Spec Question (From: james cicenia <email@hidden>)
 >Re: Fetch Spec Question (From: Dana Kashubeck <email@hidden>)

  • Prev by Date: RE: Strange EOF exception
  • Next by Date: RE: Strange EOF exception
  • Previous by thread: Re: Fetch Spec Question
  • Next by thread: Re: Fetch Spec Question
  • Index(es):
    • Date
    • Thread