• 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: CoreData fetch is way too slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSArrayController & NSTableView selectionIndexes bug
  • Next by Date: Re: NSOutlineView (bis): How does Cocoa determine a click in a cell can start a drag operation?
  • Previous by thread: re: CoreData fetch is way too slow
  • Next by thread: Re: CoreData fetch is way too slow
  • Index(es):
    • Date
    • Thread