Re: Core Data performance advice... creating relationships.
Re: Core Data performance advice... creating relationships.
- Subject: Re: Core Data performance advice... creating relationships.
- From: "Sean McBride" <email@hidden>
- Date: Tue, 15 Jan 2008 10:31:52 -0500
- Organization: Rogue Research
On 1/15/08 2:31 AM, Martin Linklater said:
>>That fetch request has to perform a full table scan for the instances
>>(not "entities") of Bar whose ID property equals x, because unless
>>you've told it to do so in your data model (and you're running
>>Leopard), it won't know to create an index on that property.
>
>BINGO. I set the ID attributes to be indexed and it's going MUCH faster
>now. Don't I feel like an idiot. Is this 'indexed' flag documented at
>all ? I've had a good look at the docs and it doesn't stand out to me...
>but I'm probalby missing something.
I think the 'indexed' flag is new in 10.5, and the docs are lagging.
The "Core Data Programming Guide" contains the word "indexed" once, and
it's got nothing to do with it.
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
CoreData.pdf>
Anyone know of any docs on "indexed"?
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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