Re: CoreData fetch is way too slow
Re: CoreData fetch is way too slow
- Subject: Re: CoreData fetch is way too slow
- From: James Hober <email@hidden>
- Date: Wed, 6 Feb 2008 10:24:42 -0800
I simply changed the predicate from using LIKE to using == and fetch
time plummeted from 7 seconds to 0.18 seconds.
This is very usable. I think it is a better user experience to shave
off the 3.5 seconds of launch time that my previous implementation
needed in exchange for each query taking 0.18 seconds.
Several of you suggested indexing the attribute I search against. It
looks like indexing an attribute is only available in Leopard and for
now I have to support Tiger.
I will continue to investigate further optimization.
Thanks to all who replied.
James
_______________________________________________
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