Re: NSFetchedResultsController with custom NSSortDescriptor
Re: NSFetchedResultsController with custom NSSortDescriptor
- Subject: Re: NSFetchedResultsController with custom NSSortDescriptor
- From: Kyle Sluder <email@hidden>
- Date: Wed, 19 Aug 2009 09:06:46 -0700
You're going to need to do an in-memory sort of these objects. Your
suspicions about Core Data sorting are correct: when using the SQLite
store, it sends the sorting off to the database backend, where it's
far more efficient to do.
Have you thought instead of sorting on a dependent property of your
objects? Maybe create an integer property sortIndex that is updated
when other properties are updated. This is where you need to shut up
the part of your brain that complains about normalization. :)
--Kyle Sluder
_______________________________________________
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