Re: CoreData and pre-fetching/batch-faulting
Re: CoreData and pre-fetching/batch-faulting
- Subject: Re: CoreData and pre-fetching/batch-faulting
- From: Frank Illenberger <email@hidden>
- Date: Wed, 6 Jul 2005 11:08:33 +0200
> I am developing a CoreData application in which I have to use the
> SQL file format. It implements a big tree structure. The problem
> is, that because of this tree structure, CoreData performs tons of
> unnecessary fetches for firing all the faults for the tree
> relationships. Is there any recommended way for a developer to
> implement a kind of pre-fetching/batch-faulting scheme that can
> reduce the number of needed fetches?
>
Do an explicit fetch of the destination entity?
I tried this. But even if I manually pre-fetch all the objects in my
sqlite file via explicit fetches, additional fetches are performed
when relationship faults are fired.
This is pretty bad, because for a tree structure using a reflexive
relationship this means, that you never will be able to load the
whole tree with a single fetch. Instead you need as many fetches as
there are objects in your tree. This is not good scaling.
Cheers
Frank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden