Re: Two simple questions regarding Core-Data
Re: Two simple questions regarding Core-Data
- Subject: Re: Two simple questions regarding Core-Data
- From: Steve Israelson <email@hidden>
- Date: Fri, 4 May 2007 15:33:26 -0700
Maybe the array controller sorted the array and thus had to access
each object causing it to fault?
On 4-May-07, at 2:48 PM, Robert Walker wrote:
Marcus,
Thanks for check into this for me. I do realize the OP's
question. My previous post was for my own desire to understand the
internal mechanics of Core Data. I'm really just looking to crack
open that "black box" a bit to rise to the next level of
understanding.
It is very interesting that it made a difference fetching the
objects in code with a fetch request, as opposed to pulling the
selection out of the NSArrayController. It would be interesting to
know for sure why that is. Now that I have your example I'll do
some more experimenting on my own. I quite enjoy puzzles like these.
On May 4, 2007, at 5:08 PM, Marcus S. Zarra wrote:
Interesting that your example causes the faults to fire. By removing
the bindings from the equation I was not able to duplicate your
results.
NOTE: the OP was looking for a way to perform a "select count(*) from
xxx" which the above code does perform without a performance hit of
firing the faults.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden